mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-09-13 20:04:45 +08:00
19 lines
230 B
Plaintext
19 lines
230 B
Plaintext
. /lib/functions.sh
|
|
|
|
handle_config(){
|
|
config_get iface "$1" iface
|
|
[ "$iface" = "$INTERFACE" ] && {
|
|
run_ttl=1
|
|
}
|
|
}
|
|
|
|
config_load ttl
|
|
config_foreach handle_config ttl
|
|
|
|
case $run_ttl in
|
|
1) /etc/init.d/ttl reload ;;
|
|
esac
|
|
|
|
exit 0
|
|
|