1
0
forked from sneak/hacks

rename dir

This commit is contained in:
2019-10-04 05:27:54 -07:00
parent 1675072561
commit 7ee2448934
16 changed files with 0 additions and 0 deletions

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