Einstellungen mit raspi-config

This commit is contained in:
2021-03-18 17:05:03 +01:00
committed by root
parent 09de894ea5
commit 19c4dca2b2
10 changed files with 37 additions and 8 deletions

26
init.d/resize2fs_once Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: resize2fs_once
# Required-Start:
# Required-Stop:
# Default-Start: 3
# Default-Stop:
# Short-Description: Resize the root filesystem to fill partition
# Description:
### END INIT INFO
. /lib/lsb/init-functions
case "$1" in
start)
log_daemon_msg "Starting resize2fs_once" &&
resize2fs "/dev/mmcblk0p2" &&
update-rc.d resize2fs_once remove &&
rm /etc/init.d/resize2fs_once &&
log_end_msg $?
;;
*)
echo "Usage: $0 start" >&2
exit 3
;;
esac