Created
January 26, 2014 13:04
-
-
Save zarino/8632372 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
if test -z "${REAL_OPT_DIR}"; then | |
# next line to be replaced according to OPTWARE_TARGET | |
REAL_OPT_DIR=/volume1/@optware | |
fi | |
case "$1" in | |
start) | |
echo "Starting Optware." | |
if test -n "${REAL_OPT_DIR}"; then | |
if ! grep ' /opt ' /proc/mounts >/dev/null 2>&1 ; then | |
mkdir -p /opt | |
mount -o bind ${REAL_OPT_DIR} /opt | |
fi | |
fi | |
[ -x /opt/etc/rc.optware ] && /opt/etc/rc.optware | |
;; | |
reconfig) | |
true | |
;; | |
stop) | |
echo "Shutting down Optware." | |
true | |
;; | |
*) | |
echo "Usage: $0 {start|stop|reconfig}" | |
exit 1 | |
esac | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From https://github.com/trepmag/ds213j-optware-bootstrap
Install it on your Synology NAS by running:
cd /etc wget --no-check-certificate https://gist.github.com/zarino/8632372/raw/ef13804d25c2a3188dde698f7fede1f96a36c073/rc.optware chmod 755 rc.optware