Parsing /proc/cmdline

Recently, I've been working a lot with "appliance OSs" (they boot directly to the application). These systems usually don't have any user interaction so configuring them usually means either: 1) compile the config into the image, or 2) use the command line options given to the kernel at boot at parse out /proc/cmdline. The latter tends to be better as it's easier to change. Below is a script I just wrote to do this easier.

No comments:

Post a Comment