File tree Expand file tree Collapse file tree 2 files changed +16
-11
lines changed
Expand file tree Collapse file tree 2 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 1414
1515### Syntax:
1616kernel_cmdline_extractor label
17- where label is a word followed by a equals symbol in /proc/cmdline. i.e. shredos=--autonuke
18- the label option specified after 'kernel_cmdline_extractor' should not include the '=' symbol.
17+ where label is a word followed by a equals symbol in /proc/cmdline. i.e. nwipe_options=--nousb
18+ or nwipe_options="--nousb --method=zero", the label option specified after
19+ 'kernel_cmdline_extractor' should not include the '=' symbol.
1920
2021### Examples:
2122If the kernel command line is as follows
2223```
23- linux /boot/shredos console=tty3 loglevel=3 shredos ="--autopoweroff --nousb" loadkeys=uk
24+ linux /boot/shredos console=tty3 loglevel=3 nwipe_options ="--autopoweroff --nousb" loadkeys=uk
2425```
25- then specifing shredos as the argument to kernel_cmdline_extractor would output ..
26+ then specifing nwipe_options as the argument to kernel_cmdline_extractor would output ..
2627```
27- #> kernel_cmdline_extractor shredos
28+ #> kernel_cmdline_extractor nwipe_options
2829#> --autopoweroff --nousb
2930```
30- For options that can be used with shredos , see nwipe's help, i.e. nwipe --help
31+ For options that can be used after nwipe_options , see nwipe's help, i.e. nwipe --help
3132
3233In addition the keyboard could be set from the data associated with the label loadkeys
3334```
Original file line number Diff line number Diff line change 1616 * syntax:
1717 * kernel_cmdline_extractor label
1818 *
19- * Example :
20- * If the kernel command line = linux /boot/shredos console=tty3 loglevel=3 shredos= autonuke loadkeys=uk
19+ * Examples :
20+ * If the kernel command line = linux /boot/shredos console=tty3 loglevel=3 nwipe_options=-- autonuke loadkeys=uk
2121 *
2222 * then
2323 *
24- * kernel_cmdline_extractor shredos would output 'autonuke' to stdout.
25- *
26- * while
24+ * kernel_cmdline_extractor nwipe_options would output '--autonuke' to stdout.
2725 *
2826 * kernel_cmdline_extractor loadkeys would output 'uk' to stdout.
27+ *
28+ * If the kernel command line = linux /boot/shredos console=tty3 loglevel=3 nwipe_options="--autonuke --nousb --method=zero" loadkeys=uk
29+ *
30+ * then
31+ *
32+ * kernel_cmdline_extractor nwipe_options would output '--autonuke --nousb --method=zero' to stdout.
2933 *
3034 * Return codes:
3135 * 0 = success
You can’t perform that action at this time.
0 commit comments