summaryrefslogtreecommitdiffstats
path: root/builder/wlan-boot/debug
diff options
context:
space:
mode:
authorJonathan Bauer2016-12-01 15:42:58 +0100
committerJonathan Bauer2016-12-01 15:42:58 +0100
commit542eae6fa0cea1b0e808510fb313e0c897abc6ef (patch)
tree11d795c15e58a848c5eb2095ebb99de5968f7210 /builder/wlan-boot/debug
parentMerge branch 'master' of git.openslx.org:openslx-ng/systemd-init (diff)
downloadsystemd-init-542eae6fa0cea1b0e808510fb313e0c897abc6ef.tar.gz
systemd-init-542eae6fa0cea1b0e808510fb313e0c897abc6ef.tar.xz
systemd-init-542eae6fa0cea1b0e808510fb313e0c897abc6ef.zip
Yannick Bilger's WLAN boot prototype
Diffstat (limited to 'builder/wlan-boot/debug')
-rwxr-xr-xbuilder/wlan-boot/debug/binaries/busybox.tarbin0 -> 614400 bytes
-rwxr-xr-xbuilder/wlan-boot/debug/hooks/install_busybox.sh5
-rwxr-xr-xbuilder/wlan-boot/debug/scripts/restart_wpa.sh7
-rw-r--r--builder/wlan-boot/debug/services/debug-shell.service33
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
new file mode 100755
index 00000000..b5ac4a64
--- /dev/null
+++ b/builder/wlan-boot/debug/binaries/busybox.tar
Binary files differ
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