source: ipk/source.sh4/playersnp_hbbtv/CONTROL/postinst@ 46249

Last change on this file since 46249 was 46249, checked in by obi, 4 years ago

fix ipkg postinst

  • Property svn:executable set to *
File size: 659 bytes
RevLine 
[17595]1#!/bin/sh
[46249]2if [ ! -e /etc/.opkg ] && ([ -e /etc/.oebuild ] || [ -e /etc/.ovbuild ]);then
[45000]3 opkg update
[45958]4# opkg install titan-plugin-player-hbbtv --dest $1
[45000]5 opkg install webkit-hbbtv-plugin
6else
7 INSTDIR="$1"
8 PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/hbbtv"
[17595]9
[45000]10 sed s#_path_#"$INSTDIR"#g -i "$PLUGINDIR/opera/run"
[23733]11
[45000]12 rm -rf /var/usr/lib/gstreamer-0.10
13 ln -s "$INSTDIR/usr/local/share/titan/plugins/hbbtv/opera/gstreamer-0.10" /var/usr/lib
[17595]14
[45000]15 #model=`cat /etc/model`
[23955]16
[45684]17 #if [ "$model" = "ufs910" ];then
18 # if [ -e /var/swapdir/swapfile ] && [ -e /tmp/.tmp60mb ];then
[45000]19 # echo "umount /tmp (60mb)"
20 # umount /tmp
21 # rm -f /tmp/.tmp60mb
22 # fi
23 #fi
24fi
[23955]25
[45000]26exit 0
Note: See TracBrowser for help on using the repository browser.