[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: privilege that rc.local runs under?



Quoting Matt Van Mater (nutter_@hotmail.com):
...
> My solution is to insert a few lines in rc.local that run after a 
> new kernel is installed and rebooted, and delete the temporary lines when 
> completed.

# enough rope.
if [ -f /etc/rc.oneshot ]; then
	sh /etc/rc.oneshot &
	sleep 1; mv /etc/rc.oneshot /etc/rc.oneshot- &
fi