mirror of
https://bitbucket.org/gwenhael/cubietruck-slackware.git
synced 2025-01-19 22:26:12 +01:00
836140fa52
Checking if script is runned as root Faster locale generation sunxitools build for arm
30 lines
511 B
Bash
30 lines
511 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=/etc/init.d/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
|