1 diff -Nwaur src-jf-org/switchconf/Makefile src-jf/switchconf/Makefile
2 --- src-jf-org/switchconf/Makefile 2008-01-03 14:43:53.000000000 +0100
3 +++ src-jf/switchconf/Makefile 2008-02-06 12:28:31.000000000 +0100
5 cp conf $(DESTDIR)/$(ETCDIR)
6 cp plugins.before/* $(DESTDIR)/$(ETCDIR)/before.d/
7 cp plugins.after/* $(DESTDIR)/$(ETCDIR)/after.d/
8 - install -D init.d $(DESTDIR)/$(INITDIR)/$(PACKNAME)
9 + install -D rc.d $(DESTDIR)/$(INITDIR)/$(PACKNAME)
10 install -D $(PACKNAME) $(DESTDIR)/$(BINDIR)/$(PACKNAME)
13 diff -Naur src/switchconf/Makefile src-jf/switchconf/Makefile
14 --- src/switchconf/Makefile 2007-09-09 01:33:13.000000000 +0200
15 +++ src-jf/switchconf/Makefile 2008-01-03 14:43:53.000000000 +0100
17 ETCDIR=/etc/$(PACKNAME)
18 MANDIR=/usr/share/man/man8
19 LOGROTATEDIR=/etc/logrotate.d
26 [ -d $(DESTDIR)/$(ETCDIR)/before.d ] || mkdir -p $(DESTDIR)/$(ETCDIR)/before.d
27 [ -d $(DESTDIR)/$(ETCDIR)/after.d ] || mkdir -p $(DESTDIR)/$(ETCDIR)/after.d
28 [ -d $(DESTDIR)/$(LOGROTATEDIR)/ ] || mkdir -p $(DESTDIR)/$(LOGROTATEDIR)
29 - cp debian/logrotate $(DESTDIR)/$(LOGROTATEDIR)/$(PACKNAME)
30 + cp logrotate $(DESTDIR)/$(LOGROTATEDIR)/$(PACKNAME)
31 cp conf $(DESTDIR)/$(ETCDIR)
32 cp plugins.before/* $(DESTDIR)/$(ETCDIR)/before.d/
33 cp plugins.after/* $(DESTDIR)/$(ETCDIR)/after.d/
34 --- src/switchconf/rc.d 1970-01-01 01:00:00.000000000 +0100
35 +++ src-jf/switchconf/rc.d 2008-02-06 13:53:36.000000000 +0100
40 +. /etc/rc.d/functions
42 +CMDLINE="/proc/cmdline"
46 + stat_busy "Starting $daemon_name"
47 + conf="$(sed -rne 's/(.*[[:space:]]|^)switchconf=([^[:space:]]+).*/\2/p' "$CMDLINE" | tr -d \\n)"
48 + if [ -z ${conf} ]; then
49 + echo "No switchconf kernel option"
53 + /usr/sbin/switchconf ${conf}
55 + if [ $? -gt 0 ]; then
72 + echo "usage: $0 {start|stop|restart}"
75 diff -Naur src-org/switchconf/Makefile src-jf/switchconf/Makefile
76 --- src-org/switchconf/Makefile 2008-02-06 14:11:04.000000000 +0100
77 +++ src-jf/switchconf/Makefile 2008-02-06 14:15:13.000000000 +0100
79 [ -d $(DESTDIR)/$(LOGROTATEDIR)/ ] || mkdir -p $(DESTDIR)/$(LOGROTATEDIR)
80 cp logrotate $(DESTDIR)/$(LOGROTATEDIR)/$(PACKNAME)
81 cp conf $(DESTDIR)/$(ETCDIR)
82 - cp plugins.before/* $(DESTDIR)/$(ETCDIR)/before.d/
83 - cp plugins.after/* $(DESTDIR)/$(ETCDIR)/after.d/
84 install -D rc.d $(DESTDIR)/$(INITDIR)/$(PACKNAME)
85 install -D $(PACKNAME) $(DESTDIR)/$(BINDIR)/$(PACKNAME)