#!/bin/sh # PsionLX Software -- the installer. # # Puts "Find new software" on a PsionLX netBook Pro, from the PsionLX-Software # folder of the RetroTechCollection archive, through PsionNet on a Mac on the # same network. On the netBook Pro, in Terminal: # # su # wget -O - http://:8080/lx/install | sh # # PsionNet fills its own address in below when it hands this script over. # Run some other way, give the address yourself: sh install.sh 192.168.1.4:8080 # ipkg checks every package against the MD5 in the package list. PSIONNET=${1:-@PSIONNET@} unset http_proxy HTTP_PROXY # the files come from the local network fail() { echo "*** $1"; exit 1; } [ "$(id -u)" = 0 ] || fail "This needs root: type su, then run it again." case "$PSIONNET" in *@*|"") fail "Give PsionNet's address: sh install.sh 192.168.1.4:8080" ;; *[!A-Za-z0-9.:-]*) fail "That does not look like an address: $PSIONNET" ;; esac mkdir -p /etc/ipkg cat > /etc/ipkg/psionlx-software.conf < /dev/null 2>&1 || echo " ($TITLE: ipkg could not; it still works)" done rm -f /tmp/psionlx-catalogue.txt fi # Psion's launcher was restarted to pick up its TASKS entry; make sure it is up. if ! ps | grep -q "[g]pe-appmgr"; then su - lx -c "DISPLAY=:0 gpe-appmgr -d -r > /dev/null 2>&1 &" fi echo echo "Done. Tap TASKS, then Find new software, to choose what else to install." echo "Firefox uses PsionNet by itself from now on."