mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
partresize: fix output redirection to dev/zero.
This commit is contained in:
@@ -40,14 +40,14 @@ case "${1}" in
|
|||||||
echo -e ',+' | sfdisk --no-reread -f -N3 ${DRV} 2>/dev/null
|
echo -e ',+' | sfdisk --no-reread -f -N3 ${DRV} 2>/dev/null
|
||||||
|
|
||||||
boot_mesg "Update c,h,s values of ${DRV}1 ..."
|
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
|
# Erase symlink, it should run only once
|
||||||
rm -f /etc/rc.d/rcsysinit.d/S25partresize
|
rm -f /etc/rc.d/rcsysinit.d/S25partresize
|
||||||
|
|
||||||
boot_mesg "Rebooting ..."
|
boot_mesg "Rebooting ..."
|
||||||
sync
|
sync
|
||||||
mount -o remount,ro / 2>&1 > /dev/null
|
mount -o remount,ro / &> /dev/null
|
||||||
sleep 15
|
sleep 15
|
||||||
reboot -f
|
reboot -f
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user