Changeset 23298 for ipk/source.sh4/swapemus_oscam_6089/CONTROL/preinst
- Timestamp:
- Sep 6, 2013, 7:35:22 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/swapemus_oscam_6089/CONTROL/preinst
r23015 r23298 2 2 # 3 3 TMP=/tmp/.oscam 4 INSTDIR="$1" 4 5 5 6 model=`cat /etc/model` … … 16 17 fi 17 18 18 echo "checking swapstick"19 if [ ! -d /var/swap/bin/]; then19 echo "checking install path" 20 if [ ! -d "$INSTDIR/bin/" ]; then 20 21 echo "--------------------------" 21 echo "no swapstickfound...."22 echo "no install path found...." 22 23 echo "--------------------------" 23 24 exit 1 24 25 fi 25 echo " swapstickfound...."26 echo "install path found...." 26 27 27 link=`readlink /var/swap` 28 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then 29 SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 28 if [ "/var/swap" == "$INSTDIR" ]; then 29 echo "syncing disk" 30 sync 31 else 32 SPACE=`getfreespace "$INSTDIR"` 30 33 FREE=`expr $SPACE - 100` 31 34 SIZE=936 … … 39 42 echo ok 40 43 fi 41 else42 echo "syncing disk"43 sync44 44 fi 45 45 … … 48 48 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then 49 49 echo --------------------------- 50 echo DONT USE this IPK Package!!50 echo DONT USE this TPK Package!! 51 51 echo --- 52 52 echo Only for $buildgroup Image!! … … 54 54 exit 1 55 55 fi 56 echo "installing Oscam Build 6089 to swapstick..."56 echo "installing Oscam Build 6089..." 57 57 58 58 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)