#!/bin/sh
# Copyright (c) 2000-2015 Synology Inc. All rights reserved.
. `dirname "$0"`/common

case "$1" in
	start)
		#FIXME
		# Link under /usr/bin will be clean after DSM upgrade
		# It should be moved to /usr/local/bin in DSM6
		ChecklinkFiles
		if [ 0 -ne $? ]; then
			EnablePEAR
		fi
		exit 0
		;;
	stop)
		exit 0
		;;
	status)
		ChecklinkFiles
		exit $?
		;;
	*)
		echo "Usage: $0 {start|stop|restart|status}" >&2
		exit 1
		;;
esac
exit 0

