#! /bin/sh

APPS_MOUNTED_PATH=`nvram get apps_mounted_path`
APPS_INSTALL_FOLDER=`nvram get apps_install_folder`
APPS_INSTALL_PATH=$APPS_MOUNTED_PATH/$APPS_INSTALL_FOLDER

chmod -R 777 $APPS_INSTALL_PATH
chmod 777 $APPS_INSTALL_PATH/etc/init.d/S50smartsync


cp -rf /opt/etc/apps_asus_script/smartsync_rm /tmp/
