Files
onefinity-firmware/scripts/edit-boot-config
2022-07-04 16:19:23 -07:00

13 lines
232 B
Bash
Executable File

#!/bin/bash
cp /boot/config.txt /tmp/
edit-config /tmp/config.txt "$@"
diff /boot/config.txt /tmp/config.txt >/dev/null
if [ $? -eq 1 ]; then
mount -o remount,rw /boot
mv /tmp/config.txt /boot/
mount -o remount,ro /boot
fi