Changeset 23413
- Timestamp:
- 09/07/13 20:25:43 (10 years ago)
- Location:
- ipk/source.sh4
- Files:
-
- 5 deleted
- 16 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/titanwlan_8712u/CONTROL/postinst
r17119 r23413 1 1 #!/bin/sh 2 TMP=/tmp/.wlan3 2 4 echo "successfully installed"5 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then6 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`7 FREE=`expr $SPACE - 100`8 echo new freespace size $FREE kb9 else10 echo "syncing disk"11 sync12 fi13 3 exit 0 -
ipk/source.sh4/titanwlan_8712u/CONTROL/postrm
r17119 r23413 1 1 #!/bin/sh 2 TMP=/tmp/.wlan3 PLUGINDIR=/var/lib/modules/8712u.ko4 rm -r $PLUGINDIR > /dev/null 2>&15 2 6 echo "successfully removed"7 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then8 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`9 FREE=`expr $SPACE - 100`10 echo new freespace size $FREE kb11 else12 echo "syncing disk"13 sync14 fi15 3 exit 0 -
ipk/source.sh4/titanwlan_8712u/CONTROL/preinst
r17119 r23413 1 1 #!/bin/sh 2 #3 TMP=/tmp/.wlan4 5 model=`cat /etc/model`6 echo""7 echo "Checking your Boxtype...."8 echo "Some Plugins will not work correctly on your $model!"9 echo ""10 if [ "$model" = "" ]; then11 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"12 echo "Aborting installation..."13 exit 114 else15 echo "Boxtype: $model OK"16 fi17 18 echo "install wireless 8192u.ko modul ..."19 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then20 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`21 FREE=`expr $SPACE - 100`22 SIZE=32923 echo "checking freespace"24 echo packege size $SIZE kb25 echo freespace size $FREE kb26 if [ "$FREE" -lt "$SIZE" ]; then27 echo "sorry no freespace left on device"28 exit 129 else30 echo ok31 fi32 else33 echo "syncing disk"34 sync35 fi36 buildgroup=`cat /etc/.buildgroup`37 echo "checking OS"38 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then39 echo ---------------------------40 echo DONT USE this IPK Package!!41 echo ---42 echo Only for $buildgroup Image!!43 echo ---------------------------44 exit 145 fi46 2 47 3 exit 0 -
ipk/source.sh4/titanwlan_8712u/CONTROL/prerm
r17119 r23413 1 1 #!/bin/sh 2 TMP=/tmp/.wlan 3 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then 4 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 5 FREE=`expr $SPACE - 100` 6 echo new freespace size $FREE kb 7 else 8 echo "syncing disk" 9 sync 10 fi 11 echo "removing wireless 8712u.ko modul" 2 12 3 exit 0 -
ipk/source.sh4/titanwlan_rt2870sta/CONTROL/postinst
r17119 r23413 1 1 #!/bin/sh 2 TMP=/tmp/.wlan3 2 4 echo "successfully installed"5 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then6 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`7 FREE=`expr $SPACE - 100`8 echo new freespace size $FREE kb9 else10 echo "syncing disk"11 sync12 fi13 3 exit 0 -
ipk/source.sh4/titanwlan_rt2870sta/CONTROL/postrm
r17119 r23413 1 1 #!/bin/sh 2 TMP=/tmp/.wlan3 PLUGINDIR=/var/lib/modules/rt2870sta.ko4 rm -r $PLUGINDIR > /dev/null 2>&15 2 6 echo "successfully removed"7 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then8 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`9 FREE=`expr $SPACE - 100`10 echo new freespace size $FREE kb11 else12 echo "syncing disk"13 sync14 fi15 3 exit 0 -
ipk/source.sh4/titanwlan_rt2870sta/CONTROL/preinst
r17119 r23413 1 1 #!/bin/sh 2 #3 TMP=/tmp/.wlan4 5 model=`cat /etc/model`6 echo""7 echo "Checking your Boxtype...."8 echo "Some Plugins will not work correctly on your $model!"9 echo ""10 if [ "$model" = "" ]; then11 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"12 echo "Aborting installation..."13 exit 114 else15 echo "Boxtype: $model OK"16 fi17 18 echo "install wireless rt2870sta.ko modul ..."19 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then20 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`21 FREE=`expr $SPACE - 100`22 SIZE=47023 echo "checking freespace"24 echo packege size $SIZE kb25 echo freespace size $FREE kb26 if [ "$FREE" -lt "$SIZE" ]; then27 echo "sorry no freespace left on device"28 exit 129 else30 echo ok31 fi32 else33 echo "syncing disk"34 sync35 fi36 buildgroup=`cat /etc/.buildgroup`37 echo "checking OS"38 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then39 echo ---------------------------40 echo DONT USE this IPK Package!!41 echo ---42 echo Only for $buildgroup Image!!43 echo ---------------------------44 exit 145 fi46 2 47 3 exit 0 -
ipk/source.sh4/titanwlan_rt2870sta/CONTROL/prerm
r17119 r23413 1 1 #!/bin/sh 2 TMP=/tmp/.wlan 3 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then 4 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 5 FREE=`expr $SPACE - 100` 6 echo new freespace size $FREE kb 7 else 8 echo "syncing disk" 9 sync 10 fi 11 echo "removing wireless rt2870sta.ko modul" 2 12 3 exit 0 -
ipk/source.sh4/titanwlan_rt3070sta/CONTROL/postinst
r17119 r23413 1 1 #!/bin/sh 2 TMP=/tmp/.wlan3 2 4 echo "successfully installed"5 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then6 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`7 FREE=`expr $SPACE - 100`8 echo new freespace size $FREE kb9 else10 echo "syncing disk"11 sync12 fi13 3 exit 0 -
ipk/source.sh4/titanwlan_rt3070sta/CONTROL/postrm
r17119 r23413 1 1 #!/bin/sh 2 TMP=/tmp/.wlan3 PLUGINDIR=/var/lib/modules/rt3070sta.ko4 rm -r $PLUGINDIR > /dev/null 2>&15 2 6 echo "successfully removed"7 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then8 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`9 FREE=`expr $SPACE - 100`10 echo new freespace size $FREE kb11 else12 echo "syncing disk"13 sync14 fi15 3 exit 0 -
ipk/source.sh4/titanwlan_rt3070sta/CONTROL/preinst
r17119 r23413 1 1 #!/bin/sh 2 #3 TMP=/tmp/.wlan4 5 model=`cat /etc/model`6 echo""7 echo "Checking your Boxtype...."8 echo "Some Plugins will not work correctly on your $model!"9 echo ""10 if [ "$model" = "" ]; then11 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"12 echo "Aborting installation..."13 exit 114 else15 echo "Boxtype: $model OK"16 fi17 18 echo "install wireless rt3070sta.ko modul ..."19 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then20 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`21 FREE=`expr $SPACE - 100`22 SIZE=50423 echo "checking freespace"24 echo packege size $SIZE kb25 echo freespace size $FREE kb26 if [ "$FREE" -lt "$SIZE" ]; then27 echo "sorry no freespace left on device"28 exit 129 else30 echo ok31 fi32 else33 echo "syncing disk"34 sync35 fi36 buildgroup=`cat /etc/.buildgroup`37 echo "checking OS"38 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then39 echo ---------------------------40 echo DONT USE this IPK Package!!41 echo ---42 echo Only for $buildgroup Image!!43 echo ---------------------------44 exit 145 fi46 2 47 3 exit 0 -
ipk/source.sh4/titanwlan_rt3070sta/CONTROL/prerm
r17119 r23413 1 1 #!/bin/sh 2 TMP=/tmp/.wlan 3 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then 4 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 5 FREE=`expr $SPACE - 100` 6 echo new freespace size $FREE kb 7 else 8 echo "syncing disk" 9 sync 10 fi 11 echo "removing wireless rt3070sta.ko modul" 2 12 3 exit 0 -
ipk/source.sh4/titanwlan_rt5370sta/CONTROL/postinst
r17119 r23413 1 1 #!/bin/sh 2 TMP=/tmp/.wlan3 2 4 echo "successfully installed"5 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then6 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`7 FREE=`expr $SPACE - 100`8 echo new freespace size $FREE kb9 else10 echo "syncing disk"11 sync12 fi13 3 exit 0 -
ipk/source.sh4/titanwlan_rt5370sta/CONTROL/postrm
r17119 r23413 1 1 #!/bin/sh 2 TMP=/tmp/.wlan3 PLUGINDIR=/var/lib/modules/rt5370sta.ko4 rm -r $PLUGINDIR > /dev/null 2>&15 2 6 echo "successfully removed"7 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then8 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`9 FREE=`expr $SPACE - 100`10 echo new freespace size $FREE kb11 else12 echo "syncing disk"13 sync14 fi15 3 exit 0 -
ipk/source.sh4/titanwlan_rt5370sta/CONTROL/preinst
r17119 r23413 1 1 #!/bin/sh 2 #3 TMP=/tmp/.wlan4 5 model=`cat /etc/model`6 echo""7 echo "Checking your Boxtype...."8 echo "Some Plugins will not work correctly on your $model!"9 echo ""10 if [ "$model" = "" ]; then11 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"12 echo "Aborting installation..."13 exit 114 else15 echo "Boxtype: $model OK"16 fi17 18 echo "install wireless rt5370sta.ko modul ..."19 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then20 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`21 FREE=`expr $SPACE - 100`22 SIZE=50423 echo "checking freespace"24 echo packege size $SIZE kb25 echo freespace size $FREE kb26 if [ "$FREE" -lt "$SIZE" ]; then27 echo "sorry no freespace left on device"28 exit 129 else30 echo ok31 fi32 else33 echo "syncing disk"34 sync35 fi36 buildgroup=`cat /etc/.buildgroup`37 echo "checking OS"38 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then39 echo ---------------------------40 echo DONT USE this IPK Package!!41 echo ---42 echo Only for $buildgroup Image!!43 echo ---------------------------44 exit 145 fi46 2 47 3 exit 0 -
ipk/source.sh4/titanwlan_rt5370sta/CONTROL/prerm
r17119 r23413 1 1 #!/bin/sh 2 TMP=/tmp/.wlan 3 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then 4 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 5 FREE=`expr $SPACE - 100` 6 echo new freespace size $FREE kb 7 else 8 echo "syncing disk" 9 sync 10 fi 11 echo "removing wireless rt5370sta.ko modul" 2 12 3 exit 0
Note: See TracChangeset
for help on using the changeset viewer.