#!/bin/sh # # /etc/rc.d/rc.local: Local system initialization script. # # Put any local startup commands in here. Also, if you have # anything that needs to be run at shutdown time you can # make an /etc/rc.d/rc.local_shutdown script and put those # commands in there. # dirty hack to let mortals adjust brightness on this laptop chmod 666 /sys/class/backlight/intel_backlight/brightness # no need to keep eth0 busy if it's for nothing ifconfig eth0 | grep -q "inet addr:[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*" || modprobe -r atl1c # Start vboxdrv # If you do not wish this to be executed here then comment it out, # and the installer will skip it next time. if [ -x /etc/rc.d/rc.vboxdrv ]; then /etc/rc.d/rc.vboxdrv start fi # Start vboxballoonctrl-service # If you do not wish this to be executed here then comment it out, # and the installer will skip it next time. if [ -x /etc/rc.d/rc.vboxballoonctrl-service ]; then /etc/rc.d/rc.vboxballoonctrl-service start fi # Start vboxweb-service # If you do not wish this to be executed here then comment it out, # and the installer will skip it next time. if [ -x /etc/rc.d/rc.vboxweb-service ]; then /etc/rc.d/rc.vboxweb-service start fi [ -x /etc/rc.d/rc.Tether ] && /etc/rc.d/rc.Tether start # To disable avahi, chmod rc.avahidaemon and rc.avahidnsconfd to 644 if [ -x /etc/rc.d/rc.avahidaemon -a -x /etc/rc.d/rc.avahidnsconfd ]; then /etc/rc.d/rc.avahidaemon start /etc/rc.d/rc.avahidnsconfd start fi