#!/bin/sh case $2 in DEINSTALL) config_file=$PKG_PREFIX/lib/warsow/basewsw/config.cfg if [ -e $config_file ] && ! [ -s $config_file ]; then rm -f $config_file fi ;; POST-DEINSTALL) rmdir $PKG_PREFIX/lib/warsow/basewsw 2>/dev/null || true rmdir $PKG_PREFIX/lib/warsow 2>/dev/null || true ;; esac