diff options
author | B. Watson <yalhcru@gmail.com> | 2019-03-24 21:38:59 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2019-03-24 21:38:59 -0400 |
commit | 4d1b4df43b980bd7ac8f2e40d6476bcdca8bf0b6 (patch) | |
tree | 57225df2d50162deea0be0b986b675c2efafa3df /src | |
parent | c7e4237da098389ad6273242371d1b5af546f4d4 (diff) | |
download | fujichat-4d1b4df43b980bd7ac8f2e40d6476bcdca8bf0b6.tar.gz |
derp
Diffstat (limited to 'src')
-rwxr-xr-x | src/start_slip.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/start_slip.sh b/src/start_slip.sh index 5126756..ffb2a08 100755 --- a/src/start_slip.sh +++ b/src/start_slip.sh @@ -69,9 +69,9 @@ ifconfig $SLIP_IFACE $LOCAL_IP pointopoint $REMOTE_IP if [ "$IP_MASQUERADE" = "yes" ]; then if [ "$MASQ_IFACE" = "" ]; then - /sbin/ip route show 2>/dev/null | sed -n 's,^default.*dev *\([^ ]*\).*$,\1,p' + MASQ_IFACE="$(/sbin/ip route show 2>/dev/null | sed -n 's,^default.*dev *\([^ ]*\).*$,\1,p')" if [ "$MASQ_IFACE" = "" ]; then - /sbin/route -n | grep '^0.0.0.0' | rev | cut -d' ' -f1 |rev + MASQ_IFACE="$(/sbin/route -n | grep '^0.0.0.0' | rev | cut -d' ' -f1 |rev)" if [ "$MASQ_IFACE" = "" ]; then echo "Can't autodetect default interface, guessing eth0" MASQ_IFACE="eth0" |