#!/bin/sh
statusFn()
{
if [ ! -d $linkname ]
then
exit 1
fi
if [ ! -L $linkname ]
then
exit 1
fi
exit 0
}
case $1 in
status)
statusFn
exit $?
;;
*)
echo "pid: $$, run updateUserFolder"
/usr/syno/bin/synopreferencedir --user-update
echo "pid: $$, finish updateUserFolder"
exit $?
;;
esac