1
0
forked from sneak/hacks

working on rpi borging

This commit is contained in:
2019-10-04 05:26:33 -07:00
parent f467f89c85
commit 45b3eb8ad5
15 changed files with 237 additions and 0 deletions

31
pisetup/01-install-to-boot.sh Executable file
View File

@@ -0,0 +1,31 @@
#!/bin/bash
function die {
echo "$1" > /dev/stderr
exit 1
}
function info {
echo "$1" > /dev/stderr
}
function doinstall {
# assumes osx
[[ "$(uname -s)" != "Darwin" ]] && die "need osx"
TARGET="/Volumes/boot"
if [[ ! -e "$TARGET/LICENCE.broadcom" ]]; then
die "cant find rpi boot dir"
else
info "rpi boot dir found at $TARGET"
fi
info "disabling partition resize"
sed -i '' -e 's/init=[^[:space:]]*//' "$TARGET/cmdline.txt"
info "copying setup files to disk"
}
doinstall