nano tip: set a variable in the boot command line to be used later
Seen this in the Current (pre-release) ChangeLog for x86 (32-bit):
In addition to passing options to the kernel (and possibly modules) it is possible to set a shell variable in the command line and use its value after booting. You can even quote it. For instance if I write following boot command line:
root@slackware:/ echo $didier
I just tried that inside Slackware's installer, I'll check that it works on an installed system.
PS sorry for the missing code tags, there seems to be a bug in the parser used by this forum.
I'd suggest using the /etc/environment file instead, if you need truly global variables.
But actually, I wouldn't use either of these for trivial settings. When you do this, the value becomes available literally everywhere in the system. All processes inherit it. Just use your /etc/profile or similar shell startup script, the way they're intended.
|All times are GMT -5. The time now is 10:55 PM.|