aboutsummaryrefslogtreecommitdiff
path: root/remote_install_sdcard
blob: 1a3a1ed83e27fe33b267eca801a556c956094999 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# automatic kernel updater and reboot - Andy Green <andy@openmoko.com>

GTA_DEVICE_IP=192.168.0.202

# you should set up key-based auth on dropbear if you want
# to play this game.
#
# 1) mkdir /home/root/.ssh
# 2) chown root:root / /home /home/root
# 3) chmod 700 /home/root /home/root/.ssh
# 4) copy your id_*.pub into /home/root/.ssh/authorized_keys
# 5) chmod 600 /home/root/.ssh/*

scp uImage.bin root@$GTA_DEVICE_IP:/boot
ssh root@$GTA_DEVICE_IP "mount /dev/mmcblk0p1 / -oremount,ro ; reboot -if &"