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