onemarcfifty / openvpn-bonding

bond multiple tap interfaces over openvpn
GNU General Public License v3.0
153 stars 52 forks source link

Switch to using busybox instead of sed. #7

Open cheako opened 3 years ago

cheako commented 3 years ago

I just got to the part when it installs the sed package. I think in most cases awk would be a better fit, but if we are going to be installing a tool for this task it's gotta be busybox. Example: tunnelInterfaceIP="$(ip -br addr show dev "$tunnelInterface"|busybox awk -F'[ /]+' '{print$3}')" Also busybox sed... so both needs are covered. In that case we should also target the busybox sh, meaning no more arrays I'd guess.