This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
type item struct { | |
name string | |
gewicht int | |
wert int | |
} |