commit ddb803f59b9e0d60a6710aea2f05416423fac23d
parent 9eca19e20e8914e75ebd4568b8c0d2e7abd27c53
Author: pyratebeard <root@pyratebeard.net>
Date: Fri, 10 Jul 2020 17:16:38 +0100
readonly var
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/bond_interface.sh b/scripts/bond_interface.sh
@@ -19,7 +19,7 @@ get_tmux_option() {
}
network_device() {
- local bond_device="$(get_tmux_option "$bond_option" "$bond_device")"
+ local -r bond_device="$(get_tmux_option "$bond_option" "$bond_device")"
local current_device="$(awk '/Currently Active/ {print $NF}' /proc/net/bonding/${bond_device})"
if [[ $current_device =~ ^e ]] ; then
current_device="$(get_tmux_option "$ethernet_option" "$ethernet")"