summaryrefslogtreecommitdiff
path: root/net/netatalk-asun/patches/patch-bh
blob: 6aeda3c2b6344452039123fcc9837a2f04193a6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
$NetBSD: patch-bh,v 1.1 2000/07/31 18:33:57 abs Exp $

--- rc.atalk.bsd.orig	Mon Aug 25 23:00:54 1997
+++ rc.atalk.bsd	Mon Jul 31 18:46:20 2000
@@ -1,3 +1,4 @@
+#!/bin/sh
 #
 # AppleTalk daemons. Make sure not to start atalkd in the background:
 # its data structures must have time to stablize before running the
@@ -14,26 +15,22 @@
 ##fi
 
 echo -n 'starting appletalk daemons:'
-if [ -x :SBINDIR:/atalkd ]; then
-	:SBINDIR:/atalkd;		echo -n ' atalkd'
+if [ -x :LIBEXECDIR:/atalkd ]; then
+	:LIBEXECDIR:/atalkd;		echo -n ' atalkd'
 fi
 
 if [ -x :BINDIR:/nbprgstr ]; then
-	:BINDIR:/nbprgstr -p 4 `hostname|sed 's/\..*$//'`:Workstation
-	:BINDIR:/nbprgstr -p 4 `hostname|sed 's/\..*$//'`:netatalk
+	:BINDIR:/nbprgstr -p 4 `hostname -s |sed 's/\..*$//'`:Workstation
+	:BINDIR:/nbprgstr -p 4 `hostname -s |sed 's/\..*$//'`:netatalk
 					echo -n ' nbprgstr'
 fi
 
-if [ -x :SBINDIR:/papd ]; then
-	:SBINDIR:/papd;		echo -n ' papd'
+if [ -x :LIBEXECDIR:/papd -a :ETCDIR:/papd.conf ]; then
+	:LIBEXECDIR:/papd;		echo -n ' papd'
 fi
 
-if [ -x :SBINDIR:/afpd ]; then
-	:SBINDIR:/afpd;		echo -n ' afpd'
-fi
-
-if [ -x :SBINDIR:/timelord ]; then
-	:SBINDIR:/timelord;		echo -n ' timelord'
+if [ -x :LIBEXECDIR:/afpd -a :ETCDIR:/AppleVolumes.system ]; then
+	:LIBEXECDIR:/afpd;		echo -n ' afpd'
 fi
 
 					echo '.'