SETTINGSDIRPATH="/etc/Accutrac" PARTITIONEXPAND="/PartitionExpand" PARTITIONVAL=$SETTINGSDIRPATH$PARTITIONEXPAND if [ ! -d "$SETTINGSDIRPATH" ]; then mkdir -p "$SETTINGSDIRPATH" fi if [ ! -f $PARTITIONVAL ]; then echo 0 > "$PARTITIONVAL" fi PARTEXPANDED=$(<"$PARTITIONVAL") if [ "$PARTEXPANDED" == "0" ]; then #expand root partition if status flag=0 /boot/raspi-expand-rootfs.sh #script tp expand root partition echo 1 > "$PARTITIONVAL" #change status flag=1 shutdown -r now #restart system to make the changes affect fi
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)