summaryrefslogtreecommitdiff
path: root/debian/patches/runsystem_setup_pflocal.patch
blob: cd5a79ebeec9ec6c5ddd805d617a330c0f524961 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Automatically setup local sockets if not already done so. Needed early for shell
pipelines.
---
 daemons/runsystem.sh |    6 ++++++
 1 file changed, 6 insertions(+)

--- a/daemons/runsystem.sh
+++ b/daemons/runsystem.sh
@@ -53,6 +53,12 @@ function singleuser ()
 }
 
 
+# See whether pflocal is setup already, and do so if not (install case)
+
+if ! test -e /servers/socket/1 && which settrans >/dev/null ; then
+  settrans -c /servers/socket/1 /hurd/pflocal
+fi
+
 # We expect to be started by console-run, which gives us no arguments and
 # puts FALLBACK_CONSOLE=file-name in the environment if our console is
 # other than a normal /dev/console.