add gluonShellDiet to remove all comment lines in shell files
This commit is contained in:
parent
4827f2df1b
commit
6beb5d800c
@ -32,6 +32,7 @@ endef
|
|||||||
|
|
||||||
define Package/gluon-ebtables/install
|
define Package/gluon-ebtables/install
|
||||||
$(CP) ./files/* $(1)/
|
$(CP) ./files/* $(1)/
|
||||||
|
./gluonShellDiet.sh $(1)/etc/init.d/*
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,gluon-ebtables))
|
$(eval $(call BuildPackage,gluon-ebtables))
|
||||||
|
6
package/gluon-ebtables/gluonShellDiet.sh
Executable file
6
package/gluon-ebtables/gluonShellDiet.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user