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

41 lines
1.1 KiB
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
# signalize we're up & running
/usr/sbin/microapl -a bz_imhere 120 am4 d4 f4 am4 d4 f4 dm4 dm4 f4 a4 am4 &>/dev/null
# 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
}