Files
webgui/emhttp/plugins/dynamix/scripts/bootmode
Tom Mortensen f9ec00b488 repo reorg
2023-06-02 12:49:33 -07:00

15 lines
229 B
Bash
Executable File

#!/bin/bash
# usage: bootmode 0|1
# 0 = legacy mode
# 1 = UEFI mode
cd /boot
case $1 in
0) OLD=EFI; NEW=EFI-; ;;
1) OLD=EFI-; NEW=EFI; ;;
*) OLD=EFI; NEW=EFI-; ;;
esac
if [[ -d $OLD && ! -d $NEW ]]; then
mv $OLD $NEW
fi