aboutsummaryrefslogtreecommitdiffstats
path: root/meta-mel-support/recipes-bsp/96boards-tools/96boards-tools/resize-helper.sh.in
blob: 8897ee973b7951fecdb5be42244fa08b4400d89b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#! /bin/sh

# ---------------------------------------------------------------------------------------------------------------------
# SPDX-License-Identifier: GPL-2.0-or-later
# ---------------------------------------------------------------------------------------------------------------------

### BEGIN INIT INFO
# Provides: Resize root filesystem to fit available disk space
# Description: Start resize helper, then remove own init from runlevels,
# as it is required only for first boot. run settle to provide partition
# table details.
### END INIT INFO

DESC="resize helper"

case $1 in
	start)
		echo "Starting $DESC"
		@bindir@/udevadm settle
		@sbindir@/resize-helper
		@sbindir@/update-rc.d remove resize-helper.sh
	;;
  *)
		echo "Usage: @sysconfdir@/init.d/resize-helper.sh {start}" >&2
		exit 1
	;;
esac

exit 0

# vim:noet