#!/ vim, this is /bash syntax !/ PENGUIN=1 # display pengo (requires a lot of space!) TERMBLANK=60 # screen blanking timeout SYSV_EXEC=0 # execute sysv-scripts in $RCDIR/rc?.d/[SK][0-9][0-9]* SYSV_FAC=1 # scripts in $RCDIR/init.d/* are used overwrite builtins SLOW_TERMINAL=0 # set if terminal is slow (serial console, slow machine) #CONSOLE=/dev/console # use console other than default /dev/tty1? VENDOR_STRING="DIY 0.2 / Ticklish Uvula" #RESET=1 # clear the sceren after changing runlevels HOSTNAME="cerebro" # since most programs are now searched via the PATH, better set it PATH=$PATH:/usr/app/bin:/usr/app/sbin:/opt/bin:/opt/sbin test -f /proc/self/lock && echo 1 >/proc/self/lock defalias eth0 "ethernet" 'netdev::eth0:10.0.0.1:10.0.0.0:255.255.255.0' #defalias eth0 "ethernet" 'netdev::eth0:172.20.10.44:172.20.0.0:255.255.0.0' defalias squid "squid" "simpledaemon::squid" def smartenable "Enable smart automatic offline test" start() { ( for dev in "$@"; do smartctl -et $dev & done wait ) } end defseq lm_sensors "LM Sensor" add module::i2c-viapro add module::w83781d end # facilities to be run on bootup-check (sysinit) defrl BCHK add sysinfo add autoboot_check add cmos_clock add init_swap #add checkfs_root add mount_proc add mount_devpts add sysctl add mount_root add check_modules add init_mtab add serial_ports end # facilities to be run on system-boot (boot) defrl BOOT add update add mount_ext2 add kmesg add clear_misc #add check_logs add init_utmp add mount_noext2 add clean_temp add "sh::hdparm -qM254 /dev/hd[acdefgik]" add "sh::hdparm -qd1 -qu1 -qc1 /dev/hd[abcdefgik]" add smartenable::/dev/hd[aceghik] #add lm_sensors end # standard multiuser services... defrl MULTISERV add randomdevice add hostname add automount add rpc_portmap add netdev_lo add syslogd add klogd add mysqld add inetd add fw add cannaserver add +sshd add httpd add crond add rpc_mountd add rpc_nfsd add eth0 add default_gateway::10.0.0.5 #add default_gateway::172.20.254.254 add ntpd add squid #add exportfs add +'sh::/root/s/apc 1 2 3 4' add -'sh::/root/s/apc 2 2 3 4' add -sshd end # standard system-stop sequence defrl SYSTEMSTOP add killprocs add write_utmp add safe_remount::umount #add 'sh::hdparm -qW0 /dev/hd[aceghik]' end # standard runlevels (N means after boot) defrl S # singleuser add killprocs add safe_remount end defrl 0 # halt add @SYSTEMSTOP add syncalot::3 add system_stop::halt end defrl 1 # unused add @2 end defrl 2 # multiuser + X add @MULTISERV end defrl 3 # multiuser - X add @2 end defrl 4 # unused add @2 end defrl 5 # unused add @2 end defrl 6 # reboot add @SYSTEMSTOP add system_stop::reboot end