1#!/bin/sh 2 3#nvram set apps_ver 4 5/shares/bin/rcex stop 6 7#rm -rf /shares/lib 8#rm -rf /shares/bin 9#rm -rf /shares/usr 10#rm -rf /shares/wwwapps 11 12#POOL=`nvram get apps_pool` 13#SHARE=`nvram get apps_share` 14#TARGETDIR="shares/${POOL}/${SHARE}" 15#POOLDIR="shares/${POOL}" 16#nvram set apps_pool="" 17#nvram set apps_share="" 18 19killall httpd 20