Talk:SHR post-installation

From Openmoko

Revision as of 13:28, 6 September 2009 by Gomez (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

i would modify the script this way:

#!/bin/sh
echo ""
echo "SHR (Lite) Post Installation Script" 
echo "============================"
echo "Version 1.02 - 06.09.2009"

# vLANGUAGE="cz"
vLANGUAGE="de"

#APPNAMES="navit alarm bluetooth pim mokomaze cellhunter"
APPNAMES="navit alarm"

doInstall(){
for i in $APPNAMES; do
$i
done
}

navit(){
echo "SHR-PIS Install Navit - Car Navigation"
echo "--------------------------------------"
echo "src navit http://download.navit-project.org/navit/openmoko/svn" > /etc/opkg/navit-feed.conf
opkg update
opkg install navit
opkg install navit-locale-$vLANGUAGE
mkdir /home/root/.navit
echo "Navit: Solve libgps problem"
opkg install libgps17
ln -s /usr/lib/libgps.so.17 /usr/lib/libgps.so.16
}

alarm(){  
# Already done in version SHR 20090808:
echo "SHR-PIS Install a Working Alarm Clock"
echo "-------------------------------------"
opkg remove -force-depends elementary-alarm
opkg install ffalarms
}

bluetooth(){ 
echo "SHR-PIS Install Bluetooth Package"
echo "---------------------------------"
opkg install obexpush
mkdir /var/obexpush
}

pim(){ 
echo "SHR-PIS Install PIM Apps: Tasks and Dates"
echo "-----------------------------------------"
opkg install dates tasks
opkg install http://www.opkg.org/packages/0_python-ldap_2.3.6_armv4t.ipk python-misc python-netclient \
python-netserver python-pycairo python-pygobject python-pygtk python-sqlite3 \
http://www.opkg.org/packages/1_python-vobject_0.8.1_armv4t.ipk \
http://www.opkg.org/packages/0_python-webdav_0.1.2_armv4t.ipk http://www.opkg.org/packages/1_python-gdata_1.3.0_armv4t.ipk \
http://www.opkg.org/packages/1_python-dateutil_1.4.1_armv4t.ipk http://www.opkg.org/packages/openldap_2.3.43_armv4t.ipk \
http://projects.openmoko.org/frs/download.php/841/pisi_0.3_armv4t.ipk
mkdir /media/card/pim
ln -s /media/card/pim /home/root/pim
}

mokomaze(){  
echo "SHR-PIS MokoMaze"
echo "----------------"
opkg install mokomaze
}

cellhunter(){ 
echo "SHR-PIS CellHunter"
echo "------------------"
opkg install cellhunter
}

doInstall

Gomez 12:28, 6 September 2009 (UTC)

Personal tools

i would modify the script this way:

#!/bin/sh
echo ""
echo "SHR (Lite) Post Installation Script" 
echo "============================"
echo "Version 1.02 - 06.09.2009"

# vLANGUAGE="cz"
vLANGUAGE="de"

#APPNAMES="navit alarm bluetooth pim mokomaze cellhunter"
APPNAMES="navit alarm"

doInstall(){
for i in $APPNAMES; do
$i
done
}

navit(){
echo "SHR-PIS Install Navit - Car Navigation"
echo "--------------------------------------"
echo "src navit http://download.navit-project.org/navit/openmoko/svn" > /etc/opkg/navit-feed.conf
opkg update
opkg install navit
opkg install navit-locale-$vLANGUAGE
mkdir /home/root/.navit
echo "Navit: Solve libgps problem"
opkg install libgps17
ln -s /usr/lib/libgps.so.17 /usr/lib/libgps.so.16
}

alarm(){  
# Already done in version SHR 20090808:
echo "SHR-PIS Install a Working Alarm Clock"
echo "-------------------------------------"
opkg remove -force-depends elementary-alarm
opkg install ffalarms
}

bluetooth(){ 
echo "SHR-PIS Install Bluetooth Package"
echo "---------------------------------"
opkg install obexpush
mkdir /var/obexpush
}

pim(){ 
echo "SHR-PIS Install PIM Apps: Tasks and Dates"
echo "-----------------------------------------"
opkg install dates tasks
opkg install http://www.opkg.org/packages/0_python-ldap_2.3.6_armv4t.ipk python-misc python-netclient \
python-netserver python-pycairo python-pygobject python-pygtk python-sqlite3 \
http://www.opkg.org/packages/1_python-vobject_0.8.1_armv4t.ipk \
http://www.opkg.org/packages/0_python-webdav_0.1.2_armv4t.ipk http://www.opkg.org/packages/1_python-gdata_1.3.0_armv4t.ipk \
http://www.opkg.org/packages/1_python-dateutil_1.4.1_armv4t.ipk http://www.opkg.org/packages/openldap_2.3.43_armv4t.ipk \
http://projects.openmoko.org/frs/download.php/841/pisi_0.3_armv4t.ipk
mkdir /media/card/pim
ln -s /media/card/pim /home/root/pim
}

mokomaze(){  
echo "SHR-PIS MokoMaze"
echo "----------------"
opkg install mokomaze
}

cellhunter(){ 
echo "SHR-PIS CellHunter"
echo "------------------"
opkg install cellhunter
}

doInstall

Gomez 12:28, 6 September 2009 (UTC)