cubietruck-slackware/scripts/cubian-resize2fs
Jules Winnfield c1e183b6ce cleanup
2014-01-28 09:01:44 +01:00

30 lines
500 B
Bash

#! /bin/sh
### BEGIN INIT INFO
# Provides: cubian-resize2fs
# Required-Start: $local_fs
# Required-Stop:
# Should-Start:
# Default-Start: S
# Default-Stop:
# Short-Description: Resize the root filesystem to fill partition
# Description:
### END INIT INFO
set -e
N=/cubian-resize2fs
case "$1" in
start)
/sbin/resize2fs /dev/root &&
/sbin/insserv -r cubian-resize2fs &&
rm $N
;;
*)
echo "Usage: $N {start}" >&2
exit 1
;;
esac
exit 0