Gentoo Archives: gentoo-commits

From: "Roy Marples (uberlord)" <uberlord@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-fs/samba/files: samba-init
Date: Tue, 11 Sep 2007 23:02:22
Message-Id: E1IVEdQ-00070F-VW@stork.gentoo.org
1 uberlord 07/09/11 22:55:08
2
3 Modified: samba-init
4 Log:
5 de-bashify the init script
6 (Portage version: 2.1.3.9)
7
8 Revision Changes Path
9 1.17 net-fs/samba/files/samba-init
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/files/samba-init?rev=1.17&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/files/samba-init?rev=1.17&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/files/samba-init?r1=1.16&r2=1.17
14
15 Index: samba-init
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/net-fs/samba/files/samba-init,v
18 retrieving revision 1.16
19 retrieving revision 1.17
20 diff -u -r1.16 -r1.17
21 --- samba-init 8 Sep 2007 12:05:54 -0000 1.16
22 +++ samba-init 11 Sep 2007 22:55:08 -0000 1.17
23 @@ -1,7 +1,7 @@
24 #!/sbin/runscript
25 # Copyright 1999-2007 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License, v2 or later
27 -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/samba-init,v 1.16 2007/09/08 12:05:54 dev-zero Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/samba-init,v 1.17 2007/09/11 22:55:08 uberlord Exp $
29
30 opts="reload"
31
32 @@ -12,9 +12,7 @@
33 }
34
35 DAEMONNAME="${SVCNAME##samba.}"
36 -if [[ ${DAEMONNAME} != "samba" ]] ; then
37 - daemon_list=${DAEMONNAME}
38 -fi
39 +[ "${DAEMONNAME}" != "samba" ] && daemon_list=${DAEMONNAME}
40
41 signal_do() {
42 local signal="$1"
43
44
45
46 --
47 gentoo-commits@g.o mailing list