diff options
Diffstat (limited to 'builder/wlan-boot/debug')
| -rwxr-xr-x | builder/wlan-boot/debug/binaries/busybox.tar | bin | 0 -> 614400 bytes | |||
| -rwxr-xr-x | builder/wlan-boot/debug/hooks/install_busybox.sh | 5 | ||||
| -rwxr-xr-x | builder/wlan-boot/debug/scripts/restart_wpa.sh | 7 | ||||
| -rw-r--r-- | builder/wlan-boot/debug/services/debug-shell.service | 33 |
4 files changed, 45 insertions, 0 deletions
diff --git a/builder/wlan-boot/debug/binaries/busybox.tar b/builder/wlan-boot/debug/binaries/busybox.tar Binary files differnew file mode 100755 index 00000000..b5ac4a64 --- /dev/null +++ b/builder/wlan-boot/debug/binaries/busybox.tar diff --git a/builder/wlan-boot/debug/hooks/install_busybox.sh b/builder/wlan-boot/debug/hooks/install_busybox.sh new file mode 100755 index 00000000..3b763f0e --- /dev/null +++ b/builder/wlan-boot/debug/hooks/install_busybox.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +#tar xf /root/busybox.tar -C /sysroot/usr/sbin/ usr/sbin/udhcpc +#tar xf /root/busybox.tar -C /sysroot/usr/bin/ usr/bin/busybox +tar xf /root/busybox.tar -C /sysroot/opt/openslx/ diff --git a/builder/wlan-boot/debug/scripts/restart_wpa.sh b/builder/wlan-boot/debug/scripts/restart_wpa.sh new file mode 100755 index 00000000..3e284772 --- /dev/null +++ b/builder/wlan-boot/debug/scripts/restart_wpa.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +PID=$(pgrep wpa_supplicant) +systemctl stop wpa_supplicant +kill -9 "$PID" +systemctl start wpa_supplicant +ip route add default via 10.125.1.254 dev wlan0 &>> /tmp/wlan.log diff --git a/builder/wlan-boot/debug/services/debug-shell.service b/builder/wlan-boot/debug/services/debug-shell.service new file mode 100644 index 00000000..462694a6 --- /dev/null +++ b/builder/wlan-boot/debug/services/debug-shell.service @@ -0,0 +1,33 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=Early root shell on /dev/tty9 FOR DEBUGGING ONLY +Documentation=man:sushell(8) +DefaultDependencies=no +IgnoreOnIsolate=yes + +[Service] +Environment=TERM=linux +ExecStart=/opt/openslx/usr/bin/busybox ash +Restart=always +RestartSec=0 +StandardInput=tty +TTYPath=/dev/tty9 +TTYReset=yes +TTYVHangup=yes +KillMode=process +IgnoreSIGPIPE=no +# bash ignores SIGTERM +KillSignal=SIGHUP + +# Unset locale for the console getty since the console has problems +# displaying some internationalized messages. +Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFICATION= + +[Install] +WantedBy=sysinit.target |
