mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 19:51:35 +01:00
Motivation: userland is getting several new subdirectories, it would be too insane to just dump all of that in the guest root filesystem. To alleviate the cd pain, .profile puts user inside /lkmc by default.
13 lines
368 B
Bash
Executable File
13 lines
368 B
Bash
Executable File
#!/bin/sh
|
|
set -ex
|
|
./rand_check.out
|
|
|
|
# Check if network is being replayed.
|
|
# https://superuser.com/questions/635020/how-to-know-current-time-from-internet-from-command-line-in-linux
|
|
# https://tf.nist.gov/tf-cgi/servers.cgi
|
|
#echo | nc 129.6.15.28 13
|
|
|
|
# busybox's poweroff panics, TODO why. Likely tries to kill shell.
|
|
# So just use our super raw command.
|
|
./poweroff.out
|