]> git.pld-linux.org Git - packages/systemd.git/blobdiff - udev-net.helper
- force matching systemd-libs for udev-core; fixes: /lib/udev/udevd: symbol lookup...
[packages/systemd.git] / udev-net.helper
index fbf34518a598f3d1db9b49bc1a49a211c9f0fe7e..b9199fb42e63fa3ed2e492b2df7dc3361e52e71d 100644 (file)
@@ -46,32 +46,21 @@ add|register)
            # NOTE:  network configuration relies on administered state,
            # we can't do much here without distro-specific knowledge
            # such as whether/how to invoke DHCP, set up bridging, etc.
-
-           # Run nameif as needed - Jean II
-           # Remap interface names based on MAC address. This workaround
-           # the dreaded configuration problem "all my cards are 'eth0'"...
-           # This needs to be done before ifup otherwise ifup will get
-           # confused by the name changed and because iface need to be
-           # down to change its name.
-           if [ -x /sbin/nameif ] && [ -r /etc/mactab ]; then
-               debug_mesg invoke nameif for $INTERFACE
-               NEWNAME=`/sbin/nameif`
-           fi
-
            # conform to network service (AUTOMATIC_IFCFG)
+
            [ -r /etc/sysconfig/network ] && . /etc/sysconfig/network
 
            # don't do anything for non ethernet devices
            ethernet_check $INTERFACE || exit 0;
 
            # automatically create an interface file
-           CFG=/etc/sysconfig/network-scripts/ifcfg-$INTERFACE
+           CFG=/etc/sysconfig/interfaces/ifcfg-$INTERFACE
            if [ "$AUTOMATIC_IFCFG" != no -a ! -r $CFG ]; then
                debug_mesg creating config file for $INTERFACE
                cat > $CFG <<EOF
 DEVICE=$INTERFACE
 BOOTPROTO=dhcp
-ONBOOT=yes
+ONBOOT=no
 EOF
            fi
 
@@ -99,7 +88,7 @@ remove|unregister)
        *)
            if [ -x /sbin/ifdown ]; then
                debug_mesg invoke ifdown $INTERFACE
-               exec /sbin/ifdown $INTERFACE daemon
+               exec /sbin/ifdown $INTERFACE hotplug
            fi
            ;;
     esac
This page took 0.035599 seconds and 4 git commands to generate.