diff options
author | William Hubbs <williamh@gentoo.org> | 2013-02-25 11:39:43 -0600 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2013-02-25 11:39:43 -0600 |
commit | 717330c071c4f7efaca562c30f6de4dc2f085439 (patch) | |
tree | 1b7a195954a379a283966220a64b483494d37307 | |
parent | autoconfig: run one instance of dhcpcd (diff) | |
download | livecd-tools-717330c071c4f7efaca562c30f6de4dc2f085439.tar.gz livecd-tools-717330c071c4f7efaca562c30f6de4dc2f085439.tar.bz2 livecd-tools-717330c071c4f7efaca562c30f6de4dc2f085439.zip |
livecd-functions.sh: do not hard code the path to ifconfig
Reported-by: fdbugs@dupoux.com
X-Gentoo-Bug: 454728
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=454728
-rwxr-xr-x | livecd-functions.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/livecd-functions.sh b/livecd-functions.sh index 81e2f1a..b1a73cb 100755 --- a/livecd-functions.sh +++ b/livecd-functions.sh @@ -242,7 +242,7 @@ livecd_config_ip() { GATEWAY=$(tail -n 1 ${iface}.GW) dialog --visit-items --title "DNS server" --inputbox "Please enter a name server to use (hit enter for none:)" 20 50 2> ${iface}.DNS DNS=$(tail -n 1 ${iface}.DNS) - /sbin/ifconfig ${iface} ${IP} broadcast ${BROADCAST} netmask ${NETMASK} + ifconfig ${iface} ${IP} broadcast ${BROADCAST} netmask ${NETMASK} if [ -n "${GATEWAY}" ] then /sbin/route add default gw ${GATEWAY} dev ${iface} netmask 0.0.0.0 metric 1 @@ -386,7 +386,7 @@ show_ifmenu() { local opts IFS=" " - for ifname in $(/sbin/ifconfig -a | grep "^[^ ]"); do + for ifname in $(ifconfig -a | grep "^[^ ]"); do ifname="${ifname%% *}" [[ ${ifname} == "lo" ]] && continue opts="${opts} ${ifname} '$(get_ifdesc ${ifname})'" |