Initial checkin of scripts
This commit is contained in:
parent
b58e66c5e0
commit
b737ff64cc
|
@ -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
|
||||
}
|
|
@ -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
|
|
@ -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
|
||||
|
Loading…
Reference in New Issue