Changeset 23270 for ipk/source.sh4/titanskins_tobayer01/CONTROL/prerm
- Timestamp:
- Sep 5, 2013, 1:11:10 AM (13 years ago)
- File:
-
- 1 edited
-
ipk/source.sh4/titanskins_tobayer01/CONTROL/prerm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ipk/source.sh4/titanskins_tobayer01/CONTROL/prerm
r12781 r23270 1 1 #!/bin/sh 2 TMP=/tmp/.titanskin 3 if [ `df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1 | wc -l` -eq 1 ]; then 4 SPACE=`df | grep /dev/mtdblock | grep var | sed 's/ \+/ /g' | cut -d ' ' -f4 | head -n1` 5 FREE=`expr $SPACE - 100` 6 echo new freespace size $FREE kb 7 else 8 echo "syncing disk" 9 sync 10 fi 11 echo "removing tobayer01 skin" 2 3 plugin_short="tobayer01" 4 plugin_type="skin" 5 plugin_target="/var/usr/local/share/titan/skin" 6 7 plugin_dir="$plugin_target/$plugin_short" 8 plugin="$plugin_short $plugin_type" 9 10 11 ### MAIN ### 12 13 sync 14 SPACE=`getfreespace $plugin_target` 15 FREE=`expr $SPACE - 100` 16 echo "Old free space: ${FREE}kB" 17 12 18 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)