aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Watt <jpewhacker@gmail.com>2018-01-12 09:02:56 -0600
committerArmin Kuster <akuster808@gmail.com>2018-01-22 19:44:59 -0800
commit1216c9b179be44aa2b849245cce937d2f96df8e3 (patch)
treeb88d5dcd778dd7e7a45591d1f58846595e906808
parent3e703ef29a23679bb7885d1d061d4bbc04e76667 (diff)
downloadmeta-openembedded-contrib-1216c9b179be44aa2b849245cce937d2f96df8e3.tar.gz
meta-openembedded-contrib-1216c9b179be44aa2b849245cce937d2f96df8e3.tar.bz2
meta-openembedded-contrib-1216c9b179be44aa2b849245cce937d2f96df8e3.zip
ebtables: Remove bashisms
Removes the bashism of prefacing shell functions with "function" and renames the clear function to not conflict with the command of the same name. Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-networking/recipes-filter/ebtables/ebtables-2.0.10-4/ebtables.common12
1 files changed, 6 insertions, 6 deletions
diff --git a/meta-networking/recipes-filter/ebtables/ebtables-2.0.10-4/ebtables.common b/meta-networking/recipes-filter/ebtables/ebtables-2.0.10-4/ebtables.common
index 640025dba6..1ae18fed3d 100644
--- a/meta-networking/recipes-filter/ebtables/ebtables-2.0.10-4/ebtables.common
+++ b/meta-networking/recipes-filter/ebtables/ebtables-2.0.10-4/ebtables.common
@@ -20,7 +20,7 @@ EBTABLES_BACKUP_SUFFIX="~"
config=/etc/default/$prog
[ -f "$config" ] && . "$config"
-function get_supported_tables() {
+get_supported_tables() {
EBTABLES_SUPPORTED_TABLES=
/sbin/ebtables -t filter -L 2>&1 1>/dev/null | grep -q permission
if [ $? -eq 0 ]; then
@@ -35,7 +35,7 @@ function get_supported_tables() {
done
}
-function load() {
+load() {
RETVAL=0
get_supported_tables
echo -n "Restoring ebtables rulesets: "
@@ -64,7 +64,7 @@ function load() {
fi
}
-function clear() {
+clear_rules() {
RETVAL=0
get_supported_tables
echo -n "Clearing ebtables rulesets: "
@@ -90,7 +90,7 @@ function clear() {
fi
}
-function save() {
+save() {
RETVAL=0
get_supported_tables
echo -n "Saving ebtables rulesets: "
@@ -127,11 +127,11 @@ case "$1" in
;;
stop)
[ "$EBTABLES_SAVE_ON_STOP" = "yes" ] && save
- clear
+ clear_rules
;;
restart|reload|force-reload)
[ "$EBTABLES_SAVE_ON_RESTART" = "yes" ] && save
- clear
+ clear_rules
[ "$EBTABLES_LOAD_ON_START" = "yes" ] && load
;;
load)