Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Protect your Mac using an Open Firmware banner' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Protect your Mac using an Open Firmware banner
Authored by: rattler14 on Jan 04, '05 08:51:34AM

Note: The top commands only work in bash. Zsh or Tcsh requires a different format.



[ Reply to This | # ]
Protect your Mac using an Open Firmware banner
Authored by: GaelicWizard on Jan 05, '05 11:44:05PM

Actually, you're wrong.

None of those commands envolve any action on the part of the shell, except invoking a program ("sudo") with a set of arguments ("nvram blah blah"). sudo then, in turn, runs "nvram" as root, with a set of arguments ("oem-banner blah"). nvram then interprets those arguments. At this point, it is way past shell interpretation.

The lines beginning with "setenv" are meant to be typed in OpenFirmware, as an alternative to the sudo commands. OpenFirmware does not run a shell, as it is at a much lower layer in the computer hardware. It has something that looks similar to a shell, which uses a syntax more similar to [t]csh than bash.

JP

---
Pell



[ Reply to This | # ]
Protect your Mac using an Open Firmware banner
Authored by: kps on Jan 07, '05 03:57:43PM
Actually, he's right.

In csh, by default, it is an error for a glob pattern not to match any file names, and oem-banner?=true is a glob pattern because it contains a question mark. The solution is simply to put quotes around it:


sudo nvram 'oem-banner?=true'
(which also works in sh of course.)

[ Reply to This | # ]