summaryrefslogtreecommitdiffstats
path: root/hal/pre-install
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot com>2012-01-08 12:15:45 +0100
committertnut <tnut at nutyx dot com>2012-01-08 12:15:45 +0100
commit3f57a7f93b3e7550cbd73036f6a56654e17d1d5c (patch)
tree819b14ab0377fe2054fe59866669d904e9e0b4b5 /hal/pre-install
parentc9972ec7f32bf9d37388e853fe9bf633e242d05a (diff)
downloadnutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.gz
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.bz2
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.xz
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.zip
split de git pakxe et NuTyX-extra
Diffstat (limited to 'hal/pre-install')
-rw-r--r--hal/pre-install14
1 files changed, 14 insertions, 0 deletions
diff --git a/hal/pre-install b/hal/pre-install
new file mode 100644
index 000000000..dd3fc113e
--- /dev/null
+++ b/hal/pre-install
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# check for haldaemon group or add one
+getent group haldaemon || /usr/sbin/groupadd -g 19 haldaemon
+
+# check for plugdev group or add one
+getent group plugdev || /usr/sbin/groupadd -g 63 plugdev
+
+# check for haldaemon user or add one
+getent passwd haldaemon || /usr/sbin/useradd -g haldaemon -u 19 -d /var/empty -s /bin/false -c "HAL Daemon User" haldaemon
+
+# lock the account
+/bin/passwd -l haldaemon
+