3 IS
=$
(nvram boot-args |
awk '{ print $2 }' |
grep rootless | cut
-d= -f2)
5 if [ "$IS" == "1" ]; then
6 echo "Rootless mode currently active. Use $ME 0 to deactivate."
8 echo "rootless mode currently inactive. Use $ME 1 to activate."
12 if [ "$1" == "0" ]; then
13 if [ "$IS" == "1" ]; then
14 sudo nvram boot-args
="rootless=0";
15 echo "Rootless mode deactivated. Reboot to apply.";
17 echo "Rootless mode already inactive. Nothing changed.";
20 if [ "$IS" == "0" ]; then
21 sudo nvram boot-args
="rootless=1";
22 echo "Rootless mode activated. Reboot to apply.";
24 echo "Rootless mode already active. Nothing changed.";