Changeset 23622 for ipk/source.sh4/keymaps_neutrino
- Timestamp:
- Sep 10, 2013, 3:06:29 PM (13 years ago)
- Location:
- ipk/source.sh4/keymaps_neutrino/CONTROL
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/keymaps_neutrino/CONTROL/control
r23139 r23622 9 9 Source: http://www.aaf-digital.info 10 10 Description: Neutrino Keymap 11 Showname: Neutrino Keymap 11 Showname: Neutrino Keymap 12 Usepath: /var -
ipk/source.sh4/keymaps_neutrino/CONTROL/postinst
r22883 r23622 1 1 #!/bin/sh 2 TMP=/tmp/.keymaps3 4 #. /mnt/config/titan.cfg5 6 #if [ ! -f /mnt/config/rcmap.old ]; then7 # mv /mnt/config/rcmap $rcmapfile8 #fi9 10 echo "successful installed"11 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then12 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`13 FREE=`expr $SPACE - 100`14 echo new freespace size $FREE kb15 else16 echo "syncing disk"17 sync18 fi19 20 21 22 2 23 3 exit 0 -
ipk/source.sh4/keymaps_neutrino/CONTROL/postrm
r22883 r23622 1 1 #!/bin/sh 2 TMP=/tmp/.keymaps3 echo "Erfolgreich deinstalliert..."4 2 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 14 #. /mnt/config/titan.cfg15 #rm $rcmapfile16 #mv $rcmapfile.old $rcmapfile17 3 rm /mnt/config/rcmap 18 4 mv /mnt/config/rcmap.old /mnt/config/rcmap 19 5 20 21 6 exit 0 -
ipk/source.sh4/keymaps_neutrino/CONTROL/preinst
r22883 r23622 1 1 #!/bin/sh 2 #3 TMP=/tmp/.bootlogos4 2 5 model=`cat /etc/model`6 echo""7 echo "Überprüfe Boxtype...."8 echo "Manche Plugins funktionieren nicht auf ihrer $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 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then19 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`20 FREE=`expr $SPACE - 100`21 SIZE=2022 echo "checking freespace"23 echo packege size $SIZE kb24 echo freespace size $FREE kb25 if [ "$FREE" -lt "$SIZE" ]; then26 echo "sorry no freespace left on device"27 exit 128 else29 echo ok30 fi31 else32 echo "syncing disk"33 sync34 fi35 buildgroup=`cat /etc/.buildgroup`36 echo "Überprüfe Betriebssystem..."37 if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then38 echo ---------------------------39 echo DONT USE this IPK Package!!40 echo ---41 echo Only for $buildgroup Image!!42 echo ---------------------------43 exit 144 fi45 46 #. /mnt/config/titan.cfg47 #mv $rcmapfile $rcmapfile.old48 3 mv /mnt/config/rcmap /mnt/config/rcmap.old 49 4 50 echo "installiere keymap ..."51 52 5 exit 0 -
ipk/source.sh4/keymaps_neutrino/CONTROL/prerm
r12781 r23622 1 1 #!/bin/sh 2 #3 TMP=/tmp/.keymap4 2 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 echo "Deinstalliere Neutrino Keymap"14 3 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)