2
0

40_luci-fwknopd 422 B

1234567891011121314
  1. #!/bin/sh
  2. #-- Copyright 2015 Jonathan Bennett <jbennett@incomsystems.biz>
  3. #-- Licensed to the public under the GNU General Public License v2.
  4. . /lib/functions/network.sh
  5. # Clean-up - keytype/hkeytype is unnecessary now
  6. if uci -q show fwknopd | grep \\.h\\?keytype > /dev/null; then
  7. for keytype in $(uci -q show fwknopd | grep \\.h\\?keytype= | cut -d= -f1); do
  8. uci delete $keytype
  9. done
  10. uci commit fwknopd
  11. fi
  12. exit 0