Ignore:
Timestamp:
Mar 26, 2011, 1:01:18 AM (15 years ago)
Author:
madie
Message:

[ipk] fix emu control files for new emu.sh

Location:
ipk/source/emus_kbox_1_01pre24
Files:
4 edited
3 moved

Legend:

Unmodified
Added
Removed
  • ipk/source/emus_kbox_1_01pre24/CONTROL/postinst

    r4651 r6663  
    11#!/bin/sh
    2 TMP=/tmp/.kbox
    3 PLUGINDIR=/var/emu
     2TMP=/tmp/.keys
     3PLUGINDIR=/var/keys
     4PLUGINDIR=/var/bin
    45CONFIGDIR=/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"
     6echo "successfully installed"
    187echo "syncing disk"
    198sync
     
    2312        echo new freespace size $FREE kb
    2413fi
     14
     15if [ ! -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
     19else
     20        echo "found user config file: cwshare.cfg"
     21        echo "skip ipk config file: cwshare.cfg.kbox"
     22fi
     23
     24if [ ! -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
     28else
     29        echo "found user config file: kbox_cfg"
     30        echo "skip ipk config file: kbox_cfg.kbox"
     31fi
     32
     33if [ ! -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
     37else
     38        echo "found user config file: nwcdcs.cfg"
     39        echo "skip ipk config file: nwcdcs.cfg.kbox"
     40fi
     41
    2542exit 0
  • ipk/source/emus_kbox_1_01pre24/CONTROL/postrm

    r4651 r6663  
    11#!/bin/sh
    2 TMP=/tmp/.kbox
    3 echo "successful removed"
     2TMP=/tmp/.keys
     3echo "successfully removed"
    44echo "syncing disk"
    55sync
     
    99        echo new freespace size $FREE kb
    1010fi
     11
     12sync
     13
    1114exit 0
  • ipk/source/emus_kbox_1_01pre24/CONTROL/preinst

    r4651 r6663  
    11#!/bin/sh
    22#
    3 TMP=/tmp/.skin
     3TMP=/tmp/.keys
    44echo "syncing disk"
    55sync
     
    2121        SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
    2222        FREE=`expr $SPACE - 100`
    23         SIZE=115
    24         echo "check freespace"
     23        SIZE=122
     24        echo "checking freespace"
    2525        echo packege size $SIZE kb
    2626        echo freespace size $FREE kb
    2727        if  [ "$FREE" -lt "$SIZE" ]; then
    28                 echo "sorry no freespace on device"
     28                echo "sorry no freespace left on device"
    2929                exit 1
    3030        else
     
    3232        fi
    3333fi   
    34 echo "install kbox ..."
     34echo "installing kbox and configs..."
    3535echo "checking OS"
    36 if  [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then                     
     36if  [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then
    3737        echo ---------------------------
    3838        echo DONT USE this IPK Package!!
     
    4242        exit 1
    4343fi
     44
     45sync
    4446exit 0
  • ipk/source/emus_kbox_1_01pre24/CONTROL/prerm

    r4651 r6663  
    11#!/bin/sh
    2 #
     2TMP=/tmp/.keys
    33echo "syncing disk"
    44sync
     
    88        echo freespace size $FREE kb
    99fi
    10 echo "remove kbox"
     10
    1111if [ ! -e /var/keys/cwshare.cfg.kbox ]; then
    12         echo "rename cwshare.cfg -> cwshare.cfg.kbox"
    13         mv /var/keys/cwshare.cfg /var/keys/cwshare.cfg.kbox
     12        echo "remove ipk cwshare.cfg"
     13        rm /var/keys/cwshare.cfg
    1414fi
     15
    1516if [ ! -e /var/keys/kbox_cfg.kbox ]; then
    16         echo "rename kbox_cfg -> kbox_cfg.kbox"
    17         mv /var/keys/kbox_cfg /var/keys/kbox_cfg.kbox
     17        echo "remove ipk kbox_cfg"
     18        rm /var/keys/kbox_cfg
    1819fi
     20
    1921if [ ! -e /var/keys/nwcdcs.cfg.kbox ]; then
    20         echo "rename nwcdcs.cfg -> nwcdcs.cfg.kbox"
    21         mv /var/keys/nwcdcs.cfg /var/keys/nwcdcs.cfg.kbox
     22        echo "remove ipk nwcdcs.cfg"
     23        rm /var/keys/nwcdcs.cfg
    2224fi
     25
     26echo "removing kbox and configs"
    2327exit 0
Note: See TracChangeset for help on using the changeset viewer.