summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/arptables/arptables-0.0.3-4/arptables-init-busybox.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-support/arptables/arptables-0.0.3-4/arptables-init-busybox.patch')
-rw-r--r--meta-networking/recipes-support/arptables/arptables-0.0.3-4/arptables-init-busybox.patch77
1 files changed, 77 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/arptables/arptables-0.0.3-4/arptables-init-busybox.patch b/meta-networking/recipes-support/arptables/arptables-0.0.3-4/arptables-init-busybox.patch
new file mode 100644
index 000000000..24956c4ca
--- /dev/null
+++ b/meta-networking/recipes-support/arptables/arptables-0.0.3-4/arptables-init-busybox.patch
@@ -0,0 +1,77 @@
1Index: arptables-v0.0.3-4/arptables.sysv
2===================================================================
3--- arptables-v0.0.3-4.orig/arptables.sysv 2010-03-22 16:28:03.000000000 +0300
4+++ arptables-v0.0.3-4/arptables.sysv 2010-03-22 16:27:51.000000000 +0300
5@@ -12,10 +12,10 @@
6 # config: __SYSCONFIG__/arptables
7
8 source /etc/init.d/functions
9-source /etc/sysconfig/network
10+# source /etc/sysconfig/network
11
12 # Check that networking is up.
13-[ ${NETWORKING} = "no" ] && exit 0
14+# [ ${NETWORKING} = "no" ] && exit 0
15
16 [ -x __EXEC_PATH__/arptables ] || exit 1
17 [ -x __EXEC_PATH__/arptables-save ] || exit 1
18@@ -28,32 +28,30 @@
19 desc="Arp filtering"
20
21 start() {
22- echo -n $"Starting $desc ($prog): "
23+ echo -n "Starting $desc ($prog): "
24 __EXEC_PATH__/arptables-restore < __SYSCONFIG__/arptables || RETVAL=1
25
26 if [ $RETVAL -eq 0 ]; then
27- success "$prog startup"
28- rm -f /var/lock/subsys/$prog
29+ echo "$prog ok"
30+ touch /var/lock/subsys/$prog
31 else
32- failure "$prog startup"
33+ echo "$prog failed"
34 fi
35
36- echo
37 return $RETVAL
38 }
39
40 stop() {
41- echo -n $"Stopping $desc ($prog): "
42+ echo -n "Stopping $desc ($prog): "
43 __EXEC_PATH__/arptables-restore < /dev/null || RETVAL=1
44
45 if [ $RETVAL -eq 0 ]; then
46- success "$prog shutdown"
47- rm -f %{_localstatedir}/lock/subsys/$prog
48+ echo "$prog stopped"
49+ rm -f /var/lock/subsys/$prog
50 else
51- failure "$prog shutdown"
52+ echo "$prog failed to stop"
53 fi
54
55- echo
56 return $RETVAL
57 }
58
59@@ -63,15 +61,14 @@
60 }
61
62 save() {
63- echo -n $"Saving $desc ($prog): "
64+ echo -n "Saving $desc ($prog): "
65 __EXEC_PATH__/arptables-save > __SYSCONFIG__/arptables || RETVAL=1
66
67 if [ $RETVAL -eq 0 ]; then
68- success "$prog saved"
69+ echo "$prog saved"
70 else
71- failure "$prog saved"
72+ echo "$prog is not saved"
73 fi
74- echo
75 }
76
77 case "$1" in