Update S98vtun

pull/1389/head
viktorxda 2024-04-08 17:07:53 +02:00 committed by GitHub
parent f0f865ea58
commit 3d4653a570
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,10 @@
#!/bin/sh
vtun=$(fw_printenv -n vtund)
[ ! -z "$(fw_printenv -n vtund)" ] && tunnel "$(fw_printenv -n vtund)" || exit 1;
case "$1" in
start)
if [ -n "$vtun" ]; then
tunnel "$vtun"
fi
;;
esac