Update resize2fs

This commit is contained in:
Igor Pečovnik 2014-10-12 09:26:41 +02:00
parent 36d78309c6
commit 2295d255bc

View File

@ -5,8 +5,8 @@
# Required-Start: $local_fs
# Required-Stop:
# Should-Start:
# Default-Start: S
# Default-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Resize the root filesystem to fill partition
# Description:
### END INIT INFO
@ -17,9 +17,9 @@ N=/etc/init.d/resize2fs
case "$1" in
start)
/sbin/resize2fs /dev/mmcblk0p1 &&
/sbin/insserv -r resize2fs &&
rm $N
echo "Resizing SD card file-system..."
/sbin/resize2fs /dev/mmcblk0p1 2>/dev/null
/sbin/insserv -r resize2fs
;;
*)
echo "Usage: $N {start}" >&2