overlay/Documentation/ls_xhl/root_overlay/etc/conf.d/local
2010-10-03 09:25:35 +00:00

38 lines
1011 B
Plaintext

# Here is where you can put anything you need to start
# that there is not an init script for.
local_start() {
# This is a good place to load any misc programs
# on startup (use &>/dev/null to hide output)
# want some kernel debugging over serial console (BREAK)?
#echo 1 > /proc/sys/kernel/sysrq
#echo 9 > /proc/sys/kernel/printk
# Update the filesystem okay flag and delete boot mode trace files
# on /boot to prevent the boot failure counter reach 3 when we
# in fact booted Gentoo ok
date > /boot/rootfs_ok
rm -f /boot/rootfs_booting
rm -f /boot/initrdmode
rm -f /boot/boot.log
touch /boot/hddrootmode
# avoid udev renaming 'eth0' bug by deleting this file:
rm -f /etc/udev/rules.d/70-persistent-net.rules
# We should always return 0
return 0
}
local_stop() {
# This is a good place to unload any misc.
# programs you started above.
# avoid udev renaming 'eth0' bug by deleting this file:
rm -f /etc/udev/rules.d/70-persistent-net.rules
# We should always return 0
return 0
}