Files
TTSDream/desktop/deploy/router/lanups-hotplug
T

16 lines
571 B
Bash

#!/bin/sh
# Sourced by OpenWrt hotplug. A separate process owns the retry lock.
case "${ACTION:-}:${PRODUCT:-}" in
add:665/5161/*|add:0665/5161/*)
if [ -f /etc/lanups/pending ] && [ -n "${DEVNAME:-}" ]; then
(
lock=/var/run/lanups-router-setup.lock
mkdir "$lock" 2>/dev/null || exit 0
trap 'rmdir "$lock"' EXIT
sleep 2
LANUPS_SKIP_PACKAGES=1 /usr/sbin/lanups-router 2>&1 | logger -t lanups-router
) </dev/null >/dev/null 2>&1 &
fi
;;
esac