Changeset 6663 for ipk/source/emus_kbox_1_01pre24
- Timestamp:
- Mar 26, 2011, 1:01:18 AM (15 years ago)
- Location:
- ipk/source/emus_kbox_1_01pre24
- Files:
-
- 4 edited
- 3 moved
-
CONTROL/postinst (modified) (2 diffs)
-
CONTROL/postrm (modified) (2 diffs)
-
CONTROL/preinst (modified) (4 diffs)
-
CONTROL/prerm (modified) (2 diffs)
-
var/keys/cwshare.cfg (moved) (moved from ipk/source/emus_kbox_1_01pre24/var/keys/cwshare.cfg.kbox )
-
var/keys/kbox_cfg (moved) (moved from ipk/source/emus_kbox_1_01pre24/var/keys/kbox_cfg.kbox )
-
var/keys/nwcdcs.cfg (moved) (moved from ipk/source/emus_kbox_1_01pre24/var/keys/nwcdcs.cfg.kbox )
Legend:
- Unmodified
- Added
- Removed
-
ipk/source/emus_kbox_1_01pre24/CONTROL/postinst
r4651 r6663 1 1 #!/bin/sh 2 TMP=/tmp/.kbox 3 PLUGINDIR=/var/emu 2 TMP=/tmp/.keys 3 PLUGINDIR=/var/keys 4 PLUGINDIR=/var/bin 4 5 CONFIGDIR=/var/etc 5 if [ ! -e /var/keys/cwshare.cfg ]; then 6 echo "rename cwshare.cfg.kbox -> cwshare.cfg" 7 mv /var/keys/cwshare.cfg.kbox /var/keys/cwshare.cfg 8 fi 9 if [ ! -e /var/keys/kbox_cfg ]; then 10 echo "rename kbox_cfg.kbox -> kbox_cfg" 11 mv /var/keys/kbox_cfg.kbox /var/keys/kbox_cfg 12 fi 13 if [ ! -e /var/keys/nwcdcs.cfg ]; then 14 echo "rename nwcdcs.cfg.kbox -> nwcdcs.cfg" 15 mv /var/keys/nwcdcs.cfg.kbox /var/keys/nwcdcs.cfg 16 fi 17 echo "successful installed" 6 echo "successfully installed" 18 7 echo "syncing disk" 19 8 sync … … 23 12 echo new freespace size $FREE kb 24 13 fi 14 15 if [ ! -e /var/keys/cwshare.cfg ]; then 16 echo "use ipk config file: cwshare.cfg" 17 echo "rename /var/keys/cwshare.cfg.kbox > /var/keys/cwshare.cfg" 18 mv /var/keys/cwshare.cfg.kbox /var/keys/cwshare.cfg 19 else 20 echo "found user config file: cwshare.cfg" 21 echo "skip ipk config file: cwshare.cfg.kbox" 22 fi 23 24 if [ ! -e /var/keys/kbox_cfg ]; then 25 echo "use ipk config file: kbox_cfg" 26 echo "rename /var/keys/kbox_cfg.kbox > /var/keys/kbox_cfg" 27 mv /var/keys/kbox_cfg.kbox /var/keys/kbox_cfg 28 else 29 echo "found user config file: kbox_cfg" 30 echo "skip ipk config file: kbox_cfg.kbox" 31 fi 32 33 if [ ! -e /var/keys/nwcdcs.cfg ]; then 34 echo "use ipk config file: nwcdcs.cfg" 35 echo "rename /var/keys/nwcdcs.cfg.kbox > /var/keys/nwcdcs.cfg" 36 mv /var/keys/nwcdcs.cfg.kbox /var/keys/nwcdcs.cfg 37 else 38 echo "found user config file: nwcdcs.cfg" 39 echo "skip ipk config file: nwcdcs.cfg.kbox" 40 fi 41 25 42 exit 0 -
ipk/source/emus_kbox_1_01pre24/CONTROL/postrm
r4651 r6663 1 1 #!/bin/sh 2 TMP=/tmp/.k box3 echo "successful removed"2 TMP=/tmp/.keys 3 echo "successfully removed" 4 4 echo "syncing disk" 5 5 sync … … 9 9 echo new freespace size $FREE kb 10 10 fi 11 12 sync 13 11 14 exit 0 -
ipk/source/emus_kbox_1_01pre24/CONTROL/preinst
r4651 r6663 1 1 #!/bin/sh 2 2 # 3 TMP=/tmp/. skin3 TMP=/tmp/.keys 4 4 echo "syncing disk" 5 5 sync … … 21 21 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1` 22 22 FREE=`expr $SPACE - 100` 23 SIZE=1 1524 echo "check freespace"23 SIZE=122 24 echo "checking freespace" 25 25 echo packege size $SIZE kb 26 26 echo freespace size $FREE kb 27 27 if [ "$FREE" -lt "$SIZE" ]; then 28 echo "sorry no freespace on device"28 echo "sorry no freespace left on device" 29 29 exit 1 30 30 else … … 32 32 fi 33 33 fi 34 echo "install kbox..."34 echo "installing kbox and configs..." 35 35 echo "checking OS" 36 if [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then 36 if [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then 37 37 echo --------------------------- 38 38 echo DONT USE this IPK Package!! … … 42 42 exit 1 43 43 fi 44 45 sync 44 46 exit 0 -
ipk/source/emus_kbox_1_01pre24/CONTROL/prerm
r4651 r6663 1 1 #!/bin/sh 2 # 2 TMP=/tmp/.keys 3 3 echo "syncing disk" 4 4 sync … … 8 8 echo freespace size $FREE kb 9 9 fi 10 echo "remove kbox" 10 11 11 if [ ! -e /var/keys/cwshare.cfg.kbox ]; then 12 echo "re name cwshare.cfg -> cwshare.cfg.kbox"13 mv /var/keys/cwshare.cfg /var/keys/cwshare.cfg.kbox12 echo "remove ipk cwshare.cfg" 13 rm /var/keys/cwshare.cfg 14 14 fi 15 15 16 if [ ! -e /var/keys/kbox_cfg.kbox ]; then 16 echo "re name kbox_cfg -> kbox_cfg.kbox"17 mv /var/keys/kbox_cfg /var/keys/kbox_cfg.kbox17 echo "remove ipk kbox_cfg" 18 rm /var/keys/kbox_cfg 18 19 fi 20 19 21 if [ ! -e /var/keys/nwcdcs.cfg.kbox ]; then 20 echo "re name nwcdcs.cfg -> nwcdcs.cfg.kbox"21 mv /var/keys/nwcdcs.cfg /var/keys/nwcdcs.cfg.kbox22 echo "remove ipk nwcdcs.cfg" 23 rm /var/keys/nwcdcs.cfg 22 24 fi 25 26 echo "removing kbox and configs" 23 27 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)