summaryrefslogtreecommitdiff
path: root/package/dnsmasq/ipkg/dnsmasq.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'package/dnsmasq/ipkg/dnsmasq.postinst')
-rw-r--r--package/dnsmasq/ipkg/dnsmasq.postinst7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/dnsmasq/ipkg/dnsmasq.postinst b/package/dnsmasq/ipkg/dnsmasq.postinst
new file mode 100644
index 000000000..f2ff69e58
--- /dev/null
+++ b/package/dnsmasq/ipkg/dnsmasq.postinst
@@ -0,0 +1,7 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+
+gid=$(get_next_gid)
+add_user dnsmasq $(get_next_uid) $gid /tmp
+add_group dnsmasq $gid
+add_rcconf dnsmasq dns_dhcp NO