add patch from markus wigge to add the VPN category when installing openvpn-webif
authorFelix Fietkau <nbd@openwrt.org>
Tue, 5 Sep 2006 16:12:44 +0000 (16:12 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 5 Sep 2006 16:12:44 +0000 (16:12 +0000)
SVN-Revision: 4757

openwrt/package/openvpn/ipkg/openvpn-webif.postinst [new file with mode: 0644]

diff --git a/openwrt/package/openvpn/ipkg/openvpn-webif.postinst b/openwrt/package/openvpn/ipkg/openvpn-webif.postinst
new file mode 100644 (file)
index 0000000..af8b41a
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+grep -q VPN /www/cgi-bin/webif/.categories 2>- ||
+  echo "##WEBIF:category:VPN" >> /www/cgi-bin/webif/.categories
+