]> &packageURL; &packageSHA256; &packageName; "${CONFIG_DIR}/routekeeper.cfg" chmod 0640 "${CONFIG_DIR}/routekeeper.cfg" fi if [[ ! -f "${CONFIG_DIR}/routes.json" ]]; then printf '{\n "schema": 1,\n "routes": []\n}\n' > "${CONFIG_DIR}/routes.json" chmod 0640 "${CONFIG_DIR}/routes.json" fi if [[ ! -f "${CONFIG_DIR}/status.json" ]]; then printf '{\n "schema": 1,\n "routes": {}\n}\n' > "${CONFIG_DIR}/status.json" chmod 0640 "${CONFIG_DIR}/status.json" fi if [[ -x "${PLUGIN_ROOT}/scripts/restore-startup.php" ]]; then nohup "${PLUGIN_ROOT}/scripts/restore-startup.php" --install >/dev/null 2>&1 & fi find /boot/config/plugins/routekeeper -maxdepth 1 -type f -name 'routekeeper-*-noarch-1.txz' ! -name ']]>&packageName;&version; RouteKeeper." ]]> /dev/null)" case "$RK_PID" in (*[!0-9]*|'') ;; (*) if tr '\000' ' ' < "/proc/${RK_PID}/cmdline" 2>/dev/null | grep -Fq '/usr/local/emhttp/plugins/routekeeper/scripts/restore-startup.php'; then kill "$RK_PID" 2>/dev/null || true fi ;; esac fi removepkg routekeeper 2>/dev/null || true rm -rf /usr/local/emhttp/plugins/routekeeper /run/routekeeper rm -f /boot/config/plugins/routekeeper/routekeeper-*-noarch-1.txz echo "RouteKeeper removed. Saved configuration was preserved in /boot/config/plugins/routekeeper/." ]]>