- Switch to Sytemd - Switch to linux 6.12lts - Remove modem power DTS node as it is not compatible with eg25-manager
14 lines
312 B
Bash
14 lines
312 B
Bash
#! /bin/sh
|
|
. /etc/profile
|
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
|
PARTNO=4
|
|
if [ -z "$DISK" ]; then
|
|
DISK="mmcblk0"
|
|
fi
|
|
|
|
if [ "$(/usr/bin/id -u)" -ne 0 ]; then
|
|
echo "$0 shall be run as root"
|
|
exit 1
|
|
fi
|
|
yes | parted ---pretend-input-tty /dev/mmcblk0 resizepart ${PARTNO} 100%
|
|
resize2fs /dev/${DISK}p${PARTNO} |