summaryrefslogtreecommitdiff
path: root/system/utmps/utmps.pre-upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'system/utmps/utmps.pre-upgrade')
-rw-r--r--system/utmps/utmps.pre-upgrade6
1 files changed, 6 insertions, 0 deletions
diff --git a/system/utmps/utmps.pre-upgrade b/system/utmps/utmps.pre-upgrade
new file mode 100644
index 000000000..6db960686
--- /dev/null
+++ b/system/utmps/utmps.pre-upgrade
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+addgroup -S utmp 2>/dev/null
+adduser -S -D -H -s /bin/false -G utmp -g utmp utmp 2>/dev/null
+echo 'Run "rc-update add s6 default; rc-update add utmps default" to automatically start the utmpd and wtmpd services at boot time.' 1>&2
+exit 0