mirror of
https://github.com/laurivosandi/certidude
synced 2024-11-01 11:06:25 +00:00
11 lines
240 B
Plaintext
11 lines
240 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
# To test: ACTION=ifup INTERFACE=wan sh /etc/hotplug.d/iface/50-certidude
|
||
|
|
||
|
AUTHORITY=certidude.@authority[0]
|
||
|
|
||
|
[ $ACTION == "ifup" ] || exit 0
|
||
|
[ $INTERFACE == "$(uci get $AUTHORITY.trigger)" ] || exit 0
|
||
|
|
||
|
/usr/bin/certidude-enroll
|