summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-07-25 17:07:53 +0200
committerDaniel Baumann <daniel@debian.org>2012-07-25 17:25:05 +0200
commita73e6a2241e335d5854112ea379cc3bd6b2a12ec (patch)
treefa40a547705c0d7ed19708a2504864649da84212 /scripts
parent7b0335fb8d508c2703c8ee18fed52312a4bcba49 (diff)
downloadlive-boot-a73e6a2241e335d5854112ea379cc3bd6b2a12ec.tar.gz
live-boot-a73e6a2241e335d5854112ea379cc3bd6b2a12ec.zip
Avoid re-access /proc/cmdline in select-eth-device function and use internal variable instead.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/boot/9990-select-eth-device.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/boot/9990-select-eth-device.sh b/scripts/boot/9990-select-eth-device.sh
index ed1da6f..5a769ce 100755
--- a/scripts/boot/9990-select-eth-device.sh
+++ b/scripts/boot/9990-select-eth-device.sh
@@ -6,7 +6,7 @@ Select_eth_device ()
bootconf=$(egrep '^BOOT=' /conf/initramfs.conf | tail -1)
# can be superseded by command line (used by Debian-Live's netboot for example)
- for ARGUMENT in $(cat /proc/cmdline)
+ for ARGUMENT in ${_CMDLINE}
do
case "${ARGUMENT}" in
netboot=*)
@@ -40,13 +40,13 @@ Select_eth_device ()
fi
# If user force to use specific device, write it
- for ARGUMENT in $(cat /proc/cmdline)
+ for ARGUMENT in ${_CMDLINE}
do
case "${ARGUMENT}" in
live-netdev=*)
NETDEV="${ARGUMENT#live-netdev=}"
echo "DEVICE=$NETDEV" >> /conf/param.conf
- echo "Found live-netdev parameter in /proc/cmdline. Force to use network device $NETDEV."
+ echo "Found live-netdev parameter, forcing to to use network device $NETDEV."
return
;;
esac