#!/bin/sh # ALARM post-switch_root init (runs as PID 1) mkdir -p /dev/pts /dev/shm 2>/dev/null mount -t devpts devpts /dev/pts 2>/dev/null [ -e /dev/fd ] || ln -s /proc/self/fd /dev/fd # WiFi modprobe brcmfmac 2>/dev/null if [ -f /etc/wpa_supplicant/wpa_supplicant.conf ]; then pkill wpa_supplicant 2>/dev/null wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf fi dhcpcd wlan0 # SSH mkdir -p /run/sshd pkill sshd 2>/dev/null /usr/bin/sshd # Serial login shell /usr/bin/agetty -n -l /bin/bash ttyGS0 115200 linux & echo "ALARM up: $(date)" exec /bin/sh