]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
partresize: fix output redirection to dev/zero.
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 12 Feb 2014 00:02:08 +0000 (01:02 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 12 Feb 2014 00:02:08 +0000 (01:02 +0100)
src/initscripts/init.d/partresize

index caa4ab88d07943db2b19e074574168296500003f..f9b1aa92f09f6a2aa38aecefd9f6c01cfe2c7823 100644 (file)
@@ -40,14 +40,14 @@ case "${1}" in
                echo -e ',+' | sfdisk --no-reread -f -N3 ${DRV} 2>/dev/null
 
                boot_mesg "Update c,h,s values of ${DRV}1 ..."
                echo -e ',+' | sfdisk --no-reread -f -N3 ${DRV} 2>/dev/null
 
                boot_mesg "Update c,h,s values of ${DRV}1 ..."
-               echo -e ',' | sfdisk --no-reread -f -N1 ${DRV} 2>&1 > /dev/null
+               echo -e ',' | sfdisk --no-reread -f -N1 ${DRV} &> /dev/null
 
                # Erase symlink, it should run only once
                rm -f /etc/rc.d/rcsysinit.d/S25partresize
 
                boot_mesg "Rebooting ..."
                sync
 
                # Erase symlink, it should run only once
                rm -f /etc/rc.d/rcsysinit.d/S25partresize
 
                boot_mesg "Rebooting ..."
                sync
-               mount -o remount,ro / 2>&1 > /dev/null
+               mount -o remount,ro / &> /dev/null
                sleep 15
                reboot -f
 
                sleep 15
                reboot -f