#!/bin/sh case $1 in install_remote) . /etc/init.d/rc.functions if [ -n "$WEBSERVER_INSTALL_REMOTE" ]; then apm install $WEBSERVER_INSTALL_REMOTE --start --activate while ps | grep -v grep | grep -q update_quick_start.sh; do sleep 1; done fi sed "/WEBSERVER_INSTALL_REMOTE=/d" -i /etc/rc.config ;; install_wakeup) . /etc/init.d/rc.functions if [ -n "$WEBSERVER_INSTALL_WAKEUP" ]; then apm install wakeup --start --activate fi sed "/WEBSERVER_INSTALL_WAKEUP=/d" -i /etc/rc.config ;; esac