nuke old 2.6.23 code for brcm47xx
[openwrt.git] / target / linux / s3c24xx / patches-2.6.26 / 1170-add-remote-install-sdcard-script.patch.patch
1 From a0b4cdbaad848411703dc059995ac7e8ea7e7417 Mon Sep 17 00:00:00 2001
2 From: Andy Green <andy@openmoko.com>
3 Date: Fri, 25 Jul 2008 23:06:14 +0100
4 Subject: [PATCH] add-remote-install-sdcard-script.patch
5
6 If you boot from SDCARD, this helper script for the build host
7 mounts SD card part 1, copies the new uImage.bin, umounts it and
8 then remounts SD card part 2 as ro, before doing a reboot all
9 in one step. Read the instructions inside the script for adding
10 your public key to the GTAxx rootfs for really really simple and
11 nice automatic update and reboot action.
12
13 Signed-off-by: Andy Green <andy@openmoko.com>
14 ---
15 remote_install_sdcard | 20 ++++++++++++++++++++
16 1 files changed, 20 insertions(+), 0 deletions(-)
17 create mode 100755 remote_install_sdcard
18
19 diff --git a/remote_install_sdcard b/remote_install_sdcard
20 new file mode 100755
21 index 0000000..c84b6ae
22 --- /dev/null
23 +++ b/remote_install_sdcard
24 @@ -0,0 +1,20 @@
25 +#!/bin/sh
26 +
27 +# automatic kernel updater and reboot - Andy Green <andy@openmoko.com>
28 +
29 +GTA_DEVICE_IP=192.168.0.202
30 +GTA_MOUNTPOINT=/mnt
31 +
32 +# you should set up key-based auth on dropbear if you want
33 +# to play this game.
34 +#
35 +# 1) mkdir /home/root/.ssh
36 +# 2) chown root:root / /home /home/root
37 +# 3) chmod 700 /home/root /home/root/.ssh
38 +# 4) copy your id_*.pub into /home/root/.ssh/authorized_keys
39 +# 5) chmod 600 /home/root/.ssh/*
40 +
41 +ssh root@$GTA_DEVICE_IP "mount /dev/mmcblk0p1 $GTA_MOUNTPOINT"
42 +scp uImage.bin root@$GTA_DEVICE_IP:$GTA_MOUNTPOINT
43 +ssh root@$GTA_DEVICE_IP "umount $GTA_MOUNTPOINT ; mount /dev/mmcblk0p2 / -oremount,ro ; reboot -if &"
44 +
45 --
46 1.5.6.3
47
This page took 0.042101 seconds and 5 git commands to generate.