source: ipk/source.sh4/swapnetwork_wlan_400/CONTROL/postrm@ 13042

Last change on this file since 13042 was 12385, checked in by capt_bluebaer, 14 years ago
  • Property svn:executable set to *
File size: 604 bytes
Line 
1#!/bin/sh
2TMP=/tmp/.wlan
3
4echo "successfully removed"
5
6MODS="funcemu.ko rt73.ko rt2870sta.ko rt3070sta.ko zd1211.ko zd1211b.ko"
7for i in $MODS; do
8 mv -f $FILE $FILE.old
9 sed -e "/^$i/d" $FILE.old > $FILE
10 rm /var/lib/modules/$i
11done
12rm $FILE.old
13echo "modules blacklist updated and symlinks removed"
14
15echo "syncing disk"
16sync
17
18if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1 | wc -l` -eq 1 ]; then
19 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | tail -n1`
20 FREE=`expr $SPACE - 100`
21 echo new freespace size $FREE kb
22fi
23exit 0
Note: See TracBrowser for help on using the repository browser.