📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-21 06:14:16
📂
/ (Root)
/
lib
/
dracut
/
modules.d
/
35network-manager
📍 /lib/dracut/modules.d/35network-manager
🔄 Refresh
✏️
Editing: nm-run.sh
Read Only
#!/bin/sh for i in /usr/lib/NetworkManager/system-connections/* \ /run/NetworkManager/system-connections/* \ /etc/NetworkManager/system-connections/* \ /etc/sysconfig/network-scripts/ifcfg-*; do [ -f "$i" ] || continue if getargbool 0 rd.debug -d -y rdinitdebug -d -y rdnetdebug; then /usr/sbin/NetworkManager --configure-and-quit=initrd --debug --log-level=trace else /usr/sbin/NetworkManager --configure-and-quit=initrd --no-daemon fi if [ -s /run/NetworkManager/initrd/hostname ]; then cat /run/NetworkManager/initrd/hostname > /proc/sys/kernel/hostname fi break done for _i in /sys/class/net/* do state=/run/NetworkManager/devices/$(cat $_i/ifindex) grep -q connection-uuid= $state 2>/dev/null || continue ifname=${_i##*/} while IFS='=' read -r key val; do case "$key" in root-path) printf 'new_root_path=%q\n' "$val" ;; next-server) printf 'new_next_server=%q\n' "$val" ;; dhcp-bootfile) printf 'filename=%q\n' "$val" ;; esac done < "$state" > /tmp/dhclient."$ifname".dhcpopts source_hook initqueue/online $ifname /sbin/netroot $ifname done > /tmp/nm.done
💾 Save Changes
❌ Cancel