Browse Source

network/netroot.sh: do not unset root

master
Harald Hoyer 12 years ago
parent
commit
af2fcbafe8
  1. 3
      modules.d/40network/netroot.sh

3
modules.d/40network/netroot.sh

@ -24,9 +24,6 @@ netif=$1
# handlers when this is not called from manually network bringing up. # handlers when this is not called from manually network bringing up.
if [ -z "$2" ]; then if [ -z "$2" ]; then
if [ "$netroot" = "dhcp" ] || [ "$netroot" = "dhcp6" ] ; then if [ "$netroot" = "dhcp" ] || [ "$netroot" = "dhcp6" ] ; then
# Unset root so we can check later
unset root

# Load dhcp options # Load dhcp options
[ -e /tmp/dhclient.$netif.dhcpopts ] && . /tmp/dhclient.$netif.dhcpopts [ -e /tmp/dhclient.$netif.dhcpopts ] && . /tmp/dhclient.$netif.dhcpopts



Loading…
Cancel
Save