Initial checkin of scripts

This commit is contained in:
Jamez 2019-04-04 19:33:26 -07:00
parent b58e66c5e0
commit b737ff64cc
3 changed files with 65 additions and 0 deletions

11
etc/wpa_supplicant.conf Normal file
View File

@ -0,0 +1,11 @@
# reading passphrase from stdin
ctrl_interface=DIR=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
network={
ssid="WIT Public 2"
psk="aaaabbbb"
#psk=d71443ef7c2b45ad06e565184371f0150e2eed35fa87cc8168bc02a77ab7d430
key_mgmt=WPA-PSK
}

40
rc.local Executable file
View File

@ -0,0 +1,40 @@
#!/bin/bash -x
# mount /home/internal-mmc
echo
echo
echo STARTING PINEBOOK IMAGING IN 5 SECONDS
echo STARTING PINEBOOK IMAGING IN 5 SECONDS
echo STARTING PINEBOOK IMAGING IN 5 SECONDS
echo STARTING PINEBOOK IMAGING IN 5 SECONDS
echo STARTING PINEBOOK IMAGING IN 5 SECONDS
echo
echo CONTROL-C TO STOP
echo
echo Sleep 10
sleep 10
echo Sleep 10
sleep 10
echo Sleep 10
sleep 10
echo mount /dev/mmcblk0p2 /home/factory
mount /dev/mmcblk0p2 /home/factory
#exit
echo dd if=/home/factory/emmc.img.armbian of=/dev/mmcblk2
dd if=/home/factory/emmc.img.armbian of=/dev/mmcblk2 status=progress
echo sync
sync
echo
echo
echo INSTALL SUCCEEDED
echo INSTALL SUCCEEDED
echo INSTALL SUCCEEDED
echo INSTALL SUCCEEDED
echo
echo

14
script/flashunit.service Executable file
View File

@ -0,0 +1,14 @@
[Unit]
Description=Flasher service
After=getty.target
Conflicts=getty@tty1.service
[Service]
Type=oneshot
ExecStart=/bin/bash -c "/root/rc.local"
StandardInput=tty-force
StandardOutput=inherit
StandardError=inherit
[Install]
WantedBy=getty.target