summaryrefslogtreecommitdiffstats
path: root/extra/hal/pre-install
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-04-09 18:08:12 +0200
committertnut <thierryn1 at hispeed dot ch>2010-04-09 18:08:12 +0200
commiteb3ff60b87aa1f92cba4e489e6d3503cfea6c7d4 (patch)
treefa8c332f419815020c90486d7c2fdded9415ff23 /extra/hal/pre-install
parent3e4686acf2b045f015b6265a3598c490a6ff3056 (diff)
downloadnutyx-extra-eb3ff60b87aa1f92cba4e489e6d3503cfea6c7d4.tar.gz
nutyx-extra-eb3ff60b87aa1f92cba4e489e6d3503cfea6c7d4.tar.bz2
nutyx-extra-eb3ff60b87aa1f92cba4e489e6d3503cfea6c7d4.tar.xz
nutyx-extra-eb3ff60b87aa1f92cba4e489e6d3503cfea6c7d4.zip
hal, maj des dépendances et ajout du pre-install
Diffstat (limited to 'extra/hal/pre-install')
-rw-r--r--extra/hal/pre-install14
1 files changed, 14 insertions, 0 deletions
diff --git a/extra/hal/pre-install b/extra/hal/pre-install
new file mode 100644
index 000000000..986157172
--- /dev/null
+++ b/extra/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 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
+