diff --git a/general/overlay/etc/init.d/S98wireguard b/general/overlay/etc/init.d/S98wireguard new file mode 100644 index 00000000..9066df87 --- /dev/null +++ b/general/overlay/etc/init.d/S98wireguard @@ -0,0 +1,18 @@ +#!/bin/sh + +case "$1" in + start) + wgc=$(fw_printenv -n wg_privkey) + if [ -n "$wgc" ]; then + wireguard + fi + ;; + + stop) + ;; + + *) + echo "Usage: $0 {start}" + exit 1 + ;; +esac