Author: nextgens
Date: 2008-05-12 05:19:01 +0000 (Mon, 12 May 2008)
New Revision: 19900

Modified:
   trunk/apps/new_installer/res/unix/bin/install_autostart.sh
   trunk/apps/new_installer/res/unix/bin/remove_cronjob.sh
Log:
new_installer: hide some errors displayed by crontab

Modified: trunk/apps/new_installer/res/unix/bin/install_autostart.sh
===================================================================
--- trunk/apps/new_installer/res/unix/bin/install_autostart.sh  2008-05-12 
05:17:06 UTC (rev 19899)
+++ trunk/apps/new_installer/res/unix/bin/install_autostart.sh  2008-05-12 
05:19:01 UTC (rev 19900)
@@ -13,7 +13,7 @@
        if test -x `which crontab`
        then
                echo "Installing cron job to start Freenet on reboot..."
-               crontab -l > autostart.install
+               crontab -l 2>/dev/null > autostart.install
                echo "@reboot   \"$INSTALL_PATH/run.sh\" start 2>&1 >/dev/null 
#FREENET AUTOSTART - 8888" >> autostart.install
                if crontab autostart.install
                then

Modified: trunk/apps/new_installer/res/unix/bin/remove_cronjob.sh
===================================================================
--- trunk/apps/new_installer/res/unix/bin/remove_cronjob.sh     2008-05-12 
05:17:06 UTC (rev 19899)
+++ trunk/apps/new_installer/res/unix/bin/remove_cronjob.sh     2008-05-12 
05:19:01 UTC (rev 19900)
@@ -1,7 +1,7 @@
 #!/bin/sh

-if test `crontab -l | grep -c " #FREENET AUTOSTART - 8888"` -gt 0
+if test `crontab -l 2>/dev/null | grep -c " #FREENET AUTOSTART - 8888"` -gt 0
 then
        echo Found service in crontab, removing it...
-       crontab -l | grep -v " #FREENET AUTOSTART - 8888" | crontab -
+       crontab -l 2>/dev/null | grep -v " #FREENET AUTOSTART - 8888" | crontab 
-
 fi


Reply via email to