summaryrefslogtreecommitdiff
path: root/package/freeradius-server/files/freeradius.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'package/freeradius-server/files/freeradius.postinst')
-rw-r--r--package/freeradius-server/files/freeradius.postinst6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/freeradius-server/files/freeradius.postinst b/package/freeradius-server/files/freeradius.postinst
new file mode 100644
index 000000000..c65fa195f
--- /dev/null
+++ b/package/freeradius-server/files/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