mirror of
https://github.com/KeithDHedger/LFSPkgBuilds.git
synced 2025-08-24 07:00:25 +00:00
19 lines
600 B
Bash
Executable File
19 lines
600 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
#©keithhedger Tue 3 Feb 12:04:53 GMT 2015 kdhedger68713@gmail.com
|
|
|
|
. /usr/share/LFSPkg/LFSFunctions
|
|
|
|
passwd root
|
|
|
|
if [ $USESYSTEMD -eq 0 ];then
|
|
sed -i 's@/lib/systemd/systemd-udevd@/lib/udev/udevd@' "/etc/rc.d/init.d/udev"
|
|
sed -i 's@/bin/udevadm@/sbin/udevadm@g' "/etc/rc.d/init.d/udev"
|
|
sed -i 's@/bin/udevadm@/sbin/udevadm@g' "/etc/rc.d/init.d/udev_retry"
|
|
sed -i 's@/lib/udev/udevd@/sbin/udevd@g' "/etc/rc.d/init.d/udev"
|
|
/sbin/udevadm hwdb --update
|
|
chmod +x /lib/udev/init-net-rules.sh
|
|
/lib/udev/init-net-rules.sh
|
|
else
|
|
ln -s /dev/null /etc/systemd/network/99-default.link
|
|
fi |