]> git.sur5r.net Git - bacula/bacula/commitdiff
Remove debug infos in dvd-writepart
authorNicolas Boichat <nicolas@boichat.ch>
Sat, 30 Jul 2005 13:44:09 +0000 (13:44 +0000)
committerNicolas Boichat <nicolas@boichat.ch>
Sat, 30 Jul 2005 13:44:09 +0000 (13:44 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2271 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/scripts/dvd-writepart.in

index be7fb2d9909d0eeed7b7af112d16cee7ed7a99dc..0cdf6c37db2b1ea4ac0ee581852fd13308008e82 100644 (file)
@@ -34,7 +34,7 @@ kver=`uname -r | cut -d. -f1,2`
 ksubver=`uname -r | cut -d. -f3 | cut -d- -f1`
 
 if test "a$kver" = "a2.6" ; then
-   if test "$ksubver" > 7 ; then
+   if test "$ksubver" -gt 7 ; then
       echo "Kernel version >= 2.6.8, allowing to cross the 4gb boundary."
       GROWARGS="${GROWARGS} -use-the-force-luke=4gms"
    fi
@@ -67,7 +67,7 @@ parentpid=$$
 # Starts watchdog : checks if the parent is alive. If not, kill
 # growisofs.
 
-bash -c "rtn=0; while [ \$rtn = 0 ]; do sleep 5; ps -p $parentpid; rtn=\$?; echo W\$rtn; done; echo \"Parent dead killing $growpid\"; kill $growpid; sleep 5; kill -9 $growpid" &
+bash -c "rtn=0; while [ \$rtn = 0 ]; do sleep 5; ps -p $parentpid > /dev/null; rtn=\$?; done; echo \"Parent dead killing $growpid\"; kill $growpid; sleep 5; kill -9 $growpid" &
 watchpid=$!
 
 # Waits for growisofs to stop