diff options
-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})'" |