Skip to content

Commit

Permalink
Merge pull request #1288 from jasonlyc/bug_fix
Browse files Browse the repository at this point in the history
fix syntax error in firerouter_dhcpcd_update_rt script due to dash shell
  • Loading branch information
MelvinTo authored Jun 13, 2024
2 parents ff3d5df + baf78c6 commit 40efa47
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/firerouter_dhcpcd_update_rt
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ case $reason in
var_name="nd1_addr$addr_id"
prefix_length_var_name="nd1_prefix_information${addr_id}_length"
eval "prefix_length=\$$prefix_length_var_name"
echo "haha $prefix_length"
eval "addr=\$$var_name"
if [ -n "$addr" && $prefix_length -ge 64 ]; then
if [ -n "$addr" ] && [ $prefix_length -ge 64 ]; then
new_addrs="$new_addrs$addr,"
for rt_table in $rt_tables; do
sudo ip -6 r add $addr dev $interface metric $metric mtu $mtu table $rt_table
Expand Down

0 comments on commit 40efa47

Please sign in to comment.