ebtables/ebtables-v2.0.8-initscript.diff

29 lines
850 B
Diff
Raw Normal View History

--- Makefile
+++ Makefile
@@ -85,7 +85,7 @@
.PHONY: libebtc
libebtc: $(OBJECTS2)
- $(LD) -shared -soname libebtc.so -o libebtc.so -lc $(OBJECTS2)
+ $(LD) -shared -Wl,-soname -Wl,libebtc.so -o libebtc.so -lc $(OBJECTS2)
ebtables: $(OBJECTS) ebtables-standalone.o libebtc
$(CC) $(CFLAGS) $(CFLAGS_SH_LIB) -o $@ ebtables-standalone.o -I$(KERNEL_INCLUDES) -L. -Lextensions -lebtc $(EXT_LIBSI) \
--- ebtables.sysv
+++ ebtables.sysv
@@ -11,6 +11,14 @@
#
# config: __SYSCONFIG__/ebtables (text)
# __SYSCONFIG__/ebtables.<table> (binary)
+### BEGIN INIT INFO
+# Provides: eptables
+# Required-Start: $remote_fs
+# Required-Stop:
+# Short-Description: Ethernet Bridge filter tables
+# Description: Ethernet Bridge filter tables
+### END INIT INFO
+
source /etc/init.d/functions
source /etc/sysconfig/network