summaryrefslogtreecommitdiff
path: root/package/dhcp-forwarder/files/dhcp-forwarder.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'package/dhcp-forwarder/files/dhcp-forwarder.postinst')
-rw-r--r--package/dhcp-forwarder/files/dhcp-forwarder.postinst3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/dhcp-forwarder/files/dhcp-forwarder.postinst b/package/dhcp-forwarder/files/dhcp-forwarder.postinst
index 9ba16f5b0..c08fed4f3 100644
--- a/package/dhcp-forwarder/files/dhcp-forwarder.postinst
+++ b/package/dhcp-forwarder/files/dhcp-forwarder.postinst
@@ -1,3 +1,6 @@
#!/bin/sh
. $IPKG_INSTROOT/etc/functions.sh
+gid=$(get_next_gid)
+add_group dhcp-fwd $gid
+add_user dhcp-fwd $(get_next_uid) $gid /tmp
add_rcconf dhcp_fwd dhcp_fwd NO