2ec1bbf0be
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/genlink@2460 6952d904-891a-0410-993b-d76249ca496b
38 lines
1011 B
Plaintext
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
|
|
}
|