adding rc.local in debian

echo ‘#!/bin/sh’ > /etc/rc.local
chmod 744 /etc/rc.local
RL=`grep ‘:initdefault:’ /etc/inittab | cut -d: -f2`
echo “LO:$RL:once:/etc/rc.local” >> /etc/inittab
killall -HUP init

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.