ft@0: #! /bin/sh ft@0: ### BEGIN INIT INFO ft@0: # Provides: osecfsmount ft@0: # Required-Start: $all ft@0: # Required-Stop: ft@0: # Default-Start: 2 3 4 5 ft@0: # Default-Stop: 0 1 6 ft@0: # Short-Description: Mounts /home/osecuser/Downloads to /var/run/Downloads with osecfs ft@0: # Description: Mounts /home/osecuser/Downloads to /var/run/Downloads with osecfs ft@0: ### END INIT INFO ft@0: ft@0: do_start () { ft@0: # ft@0: # If login delaying is enabled then remove the flag file ft@0: # ft@0: mkdir -p /var/run/Downloads ft@0: /usr/bin/osecfs /etc/osecfs/osecfs_downloads.cfg /var/run/Downloads ro ft@0: } ft@0: ft@0: do_status () { ft@0: /bin/df -hT ft@0: } ft@0: ft@0: do_stop () { ft@0: /bin/umount /var/run/Downloads ft@0: rmdir /var/run/Downloads ft@0: } ft@0: ft@0: case "$1" in ft@0: start) ft@0: do_start ft@0: ;; ft@0: restart|reload|force-reload) ft@0: echo "Error: argument '$1' not supported" >&2 ft@0: exit 3 ft@0: ;; ft@0: stop) ft@0: do_stop ft@0: ;; ft@0: status) ft@0: do_status ft@0: exit $? ft@0: ;; ft@0: *) ft@0: echo "Usage: $0 start|stop" >&2 ft@0: exit 3 ft@0: ;; ft@0: esac ft@0: ft@0: :