You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Outputs data to stdout that is associated with a label i.e shredos="xxxxx xxxxx xxxx" from /proc/cmdline. Specically written for ShredOS but could be used elsewhere.
3
+
4
+
Given a specific label from the kernel command line (cat /proc/cmdline) as input, this program will read the kernel command line
5
+
searching for the specified label and output the associated data. If the data associated with the label is double quoted then the
6
+
data can include embedded whitespace characters.
7
+
8
+
If not quoted then only the first word after the = symbol is read.
9
+
10
+
### syntax:
11
+
kernel_cmdline_extractor label
12
+
13
+
### Examples:
14
+
If the kernel command line is as follows
15
+
```
16
+
linux /boot/shredos console=tty3 loglevel=3 shredos="--autopoweroff --nousb" loadkeys=uk
17
+
```
18
+
then specifing shredos as the argument to kernel_cmdline_extractor would output ..
19
+
```
20
+
#> kernel_cmdline_extractor shredos
21
+
#> --autopoweroff --nousb
22
+
```
23
+
For options that can be used with shredos, see nwipe's help, i.e. nwipe --help
24
+
25
+
In addition the keyboard could be set from the data associated with the label loadkeys
0 commit comments