Changeset 2017


Ignore:
Timestamp:
Sep 26, 2011, 9:16:38 AM (7 years ago)
Author:
matthijs
Message:

fonbase: Fix pppoe mode when DNS is set top automatic.

The new custom DNS setting for pppoe introduced in r1994 did not
correctly check for the "automatic" setting (which is "0", not ""). This
corrects that mistake and makes pppoe work with automatic DNS again.

References: #686

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fon/fonbase/files/lib/fon/config.sh

    r2016 r2017  
    302302                        uci_set "network" "wan" "username" "$wanusername"
    303303                        uci_set "network" "wan" "password" "$wanpassword"
    304                         if [ -n "$wandns" ]; then
     304                        if ["$wandns" = "0" -o -n "$wandns" ]; then
    305305                                uci_set "network" "wan" "dns" "$wandns"
    306306                                uci_set "network" "wan" "peerdns" "0"
Note: See TracChangeset for help on using the changeset viewer.