Skip to content

Instantly share code, notes, and snippets.

package main
import "fmt"
type item struct {
name string
gewicht int
wert int
}
@rakor
rakor / resize.sh
Last active February 3, 2018 20:09
#!/bin/sh
DEVICE=mmcblk0
PARTITIONNUMBER=2
ROOTPART="$DEVICE"p"$PARTITIONNUMBER"
DEVMAXSIZE=$(cat "/sys/block/$DEVICE/size")
ROOTEND=$((DEVMAXSIZE -1))
parted -m "/dev/$DEVICE" u s resizepart $PARTITIONNUMBER yes "$ROOTEND"