summaryrefslogtreecommitdiff
path: root/debian/patches/run.patch
blob: 3588ddb0f3f825ce9702610d963e3cdedccdb5ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- a/daemons/rc.sh
+++ b/daemons/rc.sh
@@ -98,6 +98,13 @@
 	chgrp utmp utmp
     fi; })
 fi
+
+# until we properly start /etc/rcS.d
+rm -fr /run/*
+mkdir -p /run/lock /run/shm
+chmod 1777 /run/lock /run/shm
+: > /run/utmp
+
 echo done
 
 # See whether procfs is set up