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