Skip to content

Commit b9e39fb

Browse files
committed
More updates to examples
1 parent b9a282d commit b9e39fb

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,21 @@ make
1414

1515
### Syntax:
1616
kernel_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:
2122
If 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

3233
In addition the keyboard could be set from the data associated with the label loadkeys
3334
```

main.c

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,20 @@
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

0 commit comments

Comments
 (0)