mirror of
https://github.com/dracutdevs/dracut.git
synced 2024-10-27 00:55:34 +03:00
Minor changes to network scripts to bring inline with my current patch series
This commit is contained in:
parent
601a5333d2
commit
02d7fdcab4
@ -2,8 +2,6 @@
|
||||
# very simple dhclient-script. All it cares about is bringing the interface
|
||||
# up, and it does not even try to do anything else.
|
||||
|
||||
PATH="/sbin:$PATH"
|
||||
|
||||
case $reason in
|
||||
PREINIT) ip link set "$interface" up ;;
|
||||
BOUND) ipopts="$new_ip_address"
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
PATH="/sbin:$PATH"
|
||||
|
||||
# bail immediatly if the interface is already up
|
||||
[ -f "/net.$1.up" ] && exit 0
|
||||
|
||||
# loopback is always handled the same way
|
||||
[ "$1" = "lo" ] && {
|
||||
@ -33,4 +33,4 @@ for p in $(cat /proc/cmdline); do
|
||||
) ;;
|
||||
*) continue;;
|
||||
esac
|
||||
done
|
||||
done
|
@ -1,11 +1,8 @@
|
||||
#!/bin/sh
|
||||
PATH="/sbin:$PATH"
|
||||
|
||||
|
||||
for i in /net.*.dhcp; do
|
||||
dev=${i#net.}; dev=${i%.dhcp}
|
||||
[ -f "/net.$dev.up" ] && continue
|
||||
dhclient -1 -q $dev &
|
||||
done
|
||||
wait
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user