D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
usr
/
lib
/
dracut
/
modules.d
/
40network
/
Filename :
dhcp-root.sh
back
Copy
#!/bin/sh # This script is sourced, so root should be set. But let's be paranoid [ -z "$root" ] && root=$(getarg root=) if [ -z "$netroot" ]; then for netroot in $(getargs netroot=); do [ "$netroot" = "dhcp" ] && break [ "$netroot" = "dhcp6" ] && break done [ "$netroot" = "dhcp" ] || [ "$netroot" = "dhcp6" ] || unset netroot fi if [ "$root" = "dhcp" ] || [ "$root" = "dhcp6" ] || [ "$netroot" = "dhcp" ] || [ "$netroot" = "dhcp6" ]; then # Tell ip= checker that we need dhcp NEEDDHCP="1" # Done, all good! rootok=1 if [ "$netroot" != "dhcp" ] && [ "$netroot" != "dhcp6" ]; then netroot=$root fi # Shut up init error check [ -z "$root" ] && root="dhcp" echo '[ -d $NEWROOT/proc -o -e /dev/root ]' > $hookdir/initqueue/finished/dhcp.sh fi
Name
Size
Last Modified
Owner
Permissions
Actions
dhcp-root.sh
0.797
KB
April 06 2024 1:22:06
root
0755
ifname-genrules.sh
1.093
KB
October 08 2018 1:38:33
root
0755
module-setup.sh
0.656
KB
April 06 2024 1:22:06
root
0755
net-lib.sh
25.091
KB
April 06 2024 1:22:07
root
0755
netroot.sh
2.614
KB
April 06 2024 1:22:06
root
0755
2017 © D7net | D704T team