diff options
Diffstat (limited to 'root_scripts')
| -rwxr-xr-x | root_scripts/boot_config.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/root_scripts/boot_config.sh b/root_scripts/boot_config.sh index a0df083..4347ae8 100755 --- a/root_scripts/boot_config.sh +++ b/root_scripts/boot_config.sh @@ -2,6 +2,13 @@ # Craig Jennings <c@cjennings.net> # speeds and tidies the boot sequence +# ensure root +if ! [ $(id -u) -eq 0 ] +then + echo "Must run as root. Exiting." + exit +fi + # disable devil icon in boot menu sysrc -f /boot/loader.conf loader_logo="none" |
