Ignore:
Timestamp:
Sep 10, 2013, 4:15:12 PM (13 years ago)
Author:
nit
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/network_dlna/CONTROL/prerm

    r21600 r23625  
    11#!/bin/sh
    2 TMP=/tmp/.tmp
    3 link=`readlink /var/swap`
    4 if [ `df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ] && [ $link = "/mnt/swapextensions" ]; then
    5         SPACE=`df | grep /dev/mtdblock | grep mnt | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1`
    6         FREE=`expr $SPACE - 100`
    7         echo new freespace size $FREE kb
    8 else
    9         echo "syncing disk"
    10         sync
     2INSTDIR="$1"
     3
     4if [ ! -e "$INSTDIR/etc/minidlna.conf.minidlna" ]; then
     5        echo "remove tpk minidlna.conf"
     6        rm "$INSTDIR/etc/minidlna.conf"
    117fi
    128
    13 if [ ! -e /var/swap/etc/minidlna.conf.minidlna ]; then
    14         echo "remove tpk minidlna.conf"
    15         rm /var/swap/etc/minidlna.conf
    16 fi
    17 
    18 echo "removing minidlna from swapstick"
    199exit 0
Note: See TracChangeset for help on using the changeset viewer.