diff --git a/package/gluon-ebtables/Makefile b/package/gluon-ebtables/Makefile index 43185c73..18ba4d8a 100644 --- a/package/gluon-ebtables/Makefile +++ b/package/gluon-ebtables/Makefile @@ -32,6 +32,7 @@ endef define Package/gluon-ebtables/install $(CP) ./files/* $(1)/ + ./gluonShellDiet.sh $(1)/etc/init.d/* endef $(eval $(call BuildPackage,gluon-ebtables)) diff --git a/package/gluon-ebtables/gluonShellDiet.sh b/package/gluon-ebtables/gluonShellDiet.sh new file mode 100755 index 00000000..be8f52f3 --- /dev/null +++ b/package/gluon-ebtables/gluonShellDiet.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# This script requires a file as argument (wildcards allowed) +# in which it will remove all comment lines that start with a hash '#' + +sed -i '/^\s*\#[^!].*/d; /^\s*\#$/d' $1