X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=initscripts%2Fpl_netinit;h=4e6b770cd4c1c15d20919be7a2dc5546cd8c2450;hb=fd85a905ec4b0e4810adf053d9bdcd6c22d23f98;hp=a53e3cd3c4c6e1dbeeaaa2fbbc3a61d625d89dcd;hpb=e8a44652f7f22d6103e04c2470584367f7a45d40;p=bootcd.git diff --git a/initscripts/pl_netinit b/initscripts/pl_netinit index a53e3cd..4e6b770 100755 --- a/initscripts/pl_netinit +++ b/initscripts/pl_netinit @@ -129,12 +129,12 @@ find_node_config() shopt -s nullglob for device in /sys/block/[hs]d*; do - removable=`cat $device/removable` + removable=$(cat $device/removable) if [[ $removable -ne 1 ]]; then continue fi - partitions=$(/bin/awk "\$4 ~ /`basename $device`[0-9]*/ { print \$4 }" /proc/partitions) + partitions=$(/bin/awk "\$4 ~ /$(basename $device)[0-9]*/ { print \$4 }" /proc/partitions) for partition in $partitions ; do check_dev=/dev/$partition @@ -256,7 +256,7 @@ if [[ -n "$NET_DEVICE" ]]; then pushd /sys/class/net for device in *; do - dev_address=`cat $device/address | tr A-Z a-z` + dev_address=$(cat $device/address | tr A-Z a-z) if [ "$device" == "$NET_DEVICE" -o "$dev_address" == "$NET_DEVICE" ]; then ETH_DEVICE=$device echo $(date "+%H:%M:%S") " pl_netinit: found device $ETH_DEVICE with mac address $dev_address"