wwan gets address from ppp ipcp not dhcp
This commit is contained in:
parent
4b30cd7a75
commit
be13ab23ca
@ -36,22 +36,18 @@ in rec {
|
||||
username = "user";
|
||||
password = "one2one";
|
||||
authType = "chap";
|
||||
};
|
||||
|
||||
services.dhcpc = svc.network.dhcp.client.build {
|
||||
interface = config.services.wwan;
|
||||
dependencies = [ config.services.hostname ];
|
||||
};
|
||||
|
||||
services.sshd = svc.ssh.build { };
|
||||
|
||||
services.resolvconf = oneshot rec {
|
||||
dependencies = [ services.dhcpc ];
|
||||
dependencies = [ services.wwan ];
|
||||
name = "resolvconf";
|
||||
up = ''
|
||||
. ${serviceFns}
|
||||
( in_outputs ${name}
|
||||
for i in $(output ${services.dhcpc} dns); do
|
||||
for i in $(output ${services.wwan} dns); do
|
||||
echo "nameserver $i" > resolv.conf
|
||||
done
|
||||
)
|
||||
|
@ -53,6 +53,7 @@ let
|
||||
};
|
||||
symlink = "/dev/modem";
|
||||
});
|
||||
# XXX need an ip-up script here to collect the IP address
|
||||
up = ''
|
||||
ls -l /dev/modem
|
||||
test -L /dev/modem || exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user