Forráskód Böngészése

added starting of ser in default runlevels to debian package post-install script

Pavel Kasparek 18 éve
szülő
commit
9de3af7221
1 módosított fájl, 4 hozzáadás és 0 törlés
  1. 4 0
      pkg/debian/postinst

+ 4 - 0
pkg/debian/postinst

@@ -165,6 +165,10 @@ echo "To change it's configuration use 'dpkg-reconfigure ser'"
 echo "***"
 echo "***"
 echo ""
 echo ""
 
 
+echo "Setting ser to start automatically"
+/usr/sbin/update-rc.d ser defaults || true
+
+
 if [ -x "/etc/init.d/ser" ]; then
 if [ -x "/etc/init.d/ser" ]; then
   if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
   if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
     invoke-rc.d ser restart || exit 0
     invoke-rc.d ser restart || exit 0