Changeset 23371 for ipk/source.sh4
- Timestamp:
- Sep 7, 2013, 2:18:31 PM (13 years ago)
- Location:
- ipk/source.sh4/swapemus_oscam_6089/CONTROL
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/swapemus_oscam_6089/CONTROL/postinst
r23366 r23371 77 77 78 78 echo "successfully installed" 79 if [ "/var/swap" == "$INSTDIR" ]; then80 echo "syncing disk"81 sync82 else83 SPACE=`getfreespace "$INSTDIR"`84 FREE=`expr $SPACE - 100`85 echo new freespace size $FREE kb86 fi87 79 exit 0 -
ipk/source.sh4/swapemus_oscam_6089/CONTROL/postrm
r23366 r23371 1 1 #!/bin/sh 2 INSTDIR="$1"3 2 4 echo "successfully removed"5 if [ "/var/swap" == "$INSTDIR" ]; then6 echo "syncing disk"7 sync8 else9 SPACE=`getfreespace "$INSTDIR"`10 FREE=`expr $SPACE - 100`11 echo new freespace size $FREE kb12 fi13 3 exit 0 -
ipk/source.sh4/swapemus_oscam_6089/CONTROL/preinst
r23366 r23371 1 1 #!/bin/sh 2 INSTDIR="$1"3 2 4 model=`cat /etc/model`5 echo""6 echo "Checking your Boxtype...."7 echo "Some Plugins will not work correctly on your $model!"8 echo ""9 if [ "$model" = "" ]; then10 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"11 echo "Aborting installation..."12 exit 113 else14 echo "Boxtype: $model OK"15 fi16 17 echo "checking install path"18 if [ ! -d "$INSTDIR/bin/" ]; then19 echo "--------------------------"20 echo "no install path found...."21 echo "--------------------------"22 exit 123 fi24 echo "install path found...."25 26 if [ "/var/swap" == "$INSTDIR" ]; then27 echo "syncing disk"28 sync29 fi30 31 buildgroup=`cat /etc/.buildgroup`32 echo "checking OS"33 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then34 echo ---------------------------35 echo DONT USE this TPK Package!!36 echo ---37 echo Only for $buildgroup Image!!38 echo ---------------------------39 exit 140 fi41 3 echo "installing Oscam Build 6089..." 42 43 4 exit 0 -
ipk/source.sh4/swapemus_oscam_6089/CONTROL/prerm
r23366 r23371 42 42 fi 43 43 44 if [ "/var/swap" == "$INSTDIR" ]; then 45 echo "syncing disk" 46 sync 47 else 48 SPACE=`getfreespace "$INSTDIR"` 49 FREE=`expr $SPACE - 100` 50 echo new freespace size $FREE kb 51 fi 44 52 45 echo "Removing Oscam Build 6089" 53 46 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/openaaf/chrome/common/titannit_trac_banner.png)