X7ROOT File Manager
Current Path:
/usr/lib/dracut/modules.d/40network
usr
/
lib
/
dracut
/
modules.d
/
40network
/
📁
..
📄
dhclient-script.sh
(8.32 KB)
📄
dhclient.conf
(262 B)
📄
dhcp-root.sh
(926 B)
📄
ifname-genrules.sh
(1.2 KB)
📄
ifup.sh
(13.6 KB)
📄
kill-dhclient.sh
(362 B)
📄
module-setup.sh
(4.72 KB)
📄
net-genrules.sh
(3.67 KB)
📄
net-lib.sh
(24.13 KB)
📄
netroot.sh
(2.72 KB)
📄
parse-bond.sh
(1.96 KB)
📄
parse-bridge.sh
(1.1 KB)
📄
parse-ibft.sh
(393 B)
📄
parse-ifname.sh
(662 B)
📄
parse-ip-opts.sh
(4.8 KB)
📄
parse-team.sh
(983 B)
📄
parse-vlan.sh
(532 B)
Editing: dhcp-root.sh
#!/bin/sh # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- # ex: ts=8 sw=4 sts=4 et filetype=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
Upload File
Create Folder