File tree Expand file tree Collapse file tree 3 files changed +21
-4
lines changed Expand file tree Collapse file tree 3 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ Testing you should do before pushing: new modules:
7
7
New arch:
8
8
9
9
- ` ./build -a ARCH && ./run -a ARCH `
10
- - ` wget google.com ` for Internet
10
+ - ` wget google.com && cat index.html ` for Internet
11
11
- ` ./run -a ARCH -d ` and ` ./rungdb -a ARCH `
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ set -ex
3
+ /rand_check.out
4
+
5
+ # Check if network is being replayed.
6
+ #
7
+ # TODO; requires internet to be up, which is done by inittab.
8
+ # We could do this with a /etc/init.d/SXX file,
9
+ # but how to both check that into git, and make it optional?
10
+ #
11
+ # https://superuser.com/questions/635020/how-to-know-current-time-from-internet-from-command-line-in-linux
12
+ # Raw IP because was failing with hostname:
13
+ # https://unix.stackexchange.com/questions/124283/busybox-ping-ip-works-but-hostname-nslookup-fails-with-bad-address
14
+ # https://tf.nist.gov/tf-cgi/servers.cgi
15
+ #
16
+ # echo | nc 129.6.15.28 13
17
+
18
+ # busybox's poweroff panics, TODO why. Likely tries to kill shell.
19
+ # So just use our super raw command.
20
+ /poweroff.out
Original file line number Diff line number Diff line change 4
4
5
5
# CLI handling.
6
6
arch=x86_64
7
- debug=false
8
7
debug_qemu=' '
9
8
kgdb=false
10
9
nographic=false
@@ -20,14 +19,12 @@ while getopts a:de:knqt:x OPT; do
20
19
arch=" $OPTARG "
21
20
;;
22
21
d)
23
- debug=true
24
22
extra_flags=" $extra_flags -S -s"
25
23
;;
26
24
e)
27
25
extra_append=" $extra_append $OPTARG "
28
26
;;
29
27
k)
30
- debug=true
31
28
extra_append=" $extra_append kgdbwait"
32
29
# For those who want to try KDB.
33
30
# extra_append="$extra_append kgdbwait kgdboc=kbd"
You can’t perform that action at this time.
0 commit comments