Permalink
Browse files

Added install to update-rc.d (optional)

  • Loading branch information...
asgrim committed Jul 14, 2011
1 parent c365b78 commit f9a7fe2ddc36ade70a9704526c049ae9efc32141
Showing with 10 additions and 0 deletions.
  1. +10 −0 install.sh
View
@@ -29,3 +29,13 @@ else
echo "Softlink directory-syncing-thing in the init.d directory"
ln -s /opt/directory-syncing-thing/directory-syncing-thing $INITSCRIPT
fi
+
+echo -n "Would you like to add to startup (y/n) : "
+read ADDSTART
+
+if [ "$ADDSTART" == "y" ]
+then
+ update-rc.d directory-syncing-thing defaults
+fi
+
+echo "Install complete."

0 comments on commit f9a7fe2

Please sign in to comment.