You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "You must supply the name of a script. This script must be in the working directory, and must not rely on other scripts or executables without explicitly supplying a path. The script will be copied to the /etc/init.d/ folder, and will be scheduled to start in runlevels 2,3,4,5."
else
if [ -f "/etc/init.d/$SCRIPT" ]; then
echo "Replacing existing script";
$SCRIPTS/uninstallStartupScript.sh $1;
fi
sudo cp $1 /etc/init.d/$SCRIPT
sudo update-rc.d $SCRIPT defaults 99
# defaults means runlevels 2345, not 016
# 99 is the order, in this case meaning after everything else of