You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
894 B
28 lines
894 B
#!/bin/bash |
|
dracut_install ip dhclient brctl arping |
|
inst "$moddir/ifup" "/sbin/ifup" |
|
inst "$moddir/netroot" "/sbin/netroot" |
|
inst "$moddir/dhclient-script" "/sbin/dhclient-script" |
|
inst "$moddir/dhclient.conf" "/etc/dhclient.conf" |
|
inst_hook pre-udev 50 "$moddir/ifname-genrules.sh" |
|
inst_hook pre-udev 60 "$moddir/net-genrules.sh" |
|
inst_hook cmdline 91 "$moddir/dhcp-root.sh" |
|
inst_hook cmdline 99 "$moddir/parse-ip-opts.sh" |
|
inst_hook cmdline 98 "$moddir/parse-bridge.sh" |
|
inst_hook cmdline 99 "$moddir/parse-ifname.sh" |
|
inst_hook pre-pivot 10 "$moddir/kill-dhclient.sh" |
|
|
|
if ldd $(which sh) | grep -q lib64; then |
|
LIBDIR="/lib64" |
|
else |
|
LIBDIR="/lib" |
|
fi |
|
|
|
ARCH=$(uname -m) |
|
|
|
for dir in /usr/$LIBDIR/tls/$ARCH/ /usr/$LIBDIR/tls/ /usr/$LIBDIR/$ARCH/ /usr/$LIBDIR/ /$LIBDIR/; do |
|
for i in $(ls $dir/libnss_dns.so.* $dir/libnss_mdns4_minimal.so.* 2>/dev/null); do |
|
dracut_install $i |
|
done |
|
done |
|
|
|
|