added the asterisk to leases:
mor.d/dhcpd.d/usr.sbin.aethercasphablet@ubuntu-phablet:/etc/apparmor.d/dhcpd.d$ diff -c /home/phablet/aether-silo/dhcpd.d/usr.sbin.aethercast.orig /etc/apparmor.d/dhcpd.d/usr.sbin.aethercast
*** /home/phablet/aether-silo/dhcpd.d/usr.sbin.aethercast.orig 2016-11-09 14:40:05.984798320 +0100
--- /etc/apparmor.d/dhcpd.d/usr.sbin.aethercast 2016-11-09 14:40:21.054798320 +0100
***************
*** 11,15 ****
/etc/aethercast/dhcpd.conf r,
# In addition aethercast will also point dhcpd to a private
# lease/pid file
! /{,var/}run/aethercast/dhcpd*.leases lrw,
/{,var/}run/aethercast/dhcpd*.pid lrw,
--- 11,15 ----
/etc/aethercast/dhcpd.conf r,
# In addition aethercast will also point dhcpd to a private
# lease/pid file
! /{,var/}run/aethercast/dhcpd*.leases* lrw,
/{,var/}run/aethercast/dhcpd*.pid lrw,
After reboot, the M10 FHD on so changed OTA-13 connects successfully to a Microsoft Wireless Display Adapter.
On the first connect, I see no new default route added (checked by "ip r l").
But, after disconnecting and reconnecting, a default route appears:
$ ip r l
default via 192.168.157.1 dev p2p0
default via 192.168.1.254 dev wlan0 proto static metric 600
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.33 metric 600
192.168.7.0/24 dev p2p0 proto kernel scope link src 192.168.7.1
192.168.157.0/24 dev p2p0 proto kernel scope link src 192.168.157.100
It works multiple times without new default route only after moving the enter hook one directory up:
Hello,
the short version: it works only after moving the enter-hook script one directory up.
The long version:
as my device is not set up for developer mode yet, I have tried replicating the changes by manually:
I left the line added to /etc/apparmor. d/sbin. dhclient in place:
phablet@ ubuntu- phablet: /etc/apparmor. d$ diff -c /home/phablet/ aether/ sbin.dhclient. orig sbin.dhclient aether/ sbin.dhclient. orig 2016-11-02 21:58:11.399360012 +0100
*** /home/phablet/
--- sbin.dhclient 2016-11-02 22:15:36.399360075 +0100
***************
*** 45,50 ****
--- 45,51 ----
# aethercast var/}run/ aethercast/ dhclient* .leases lrw, /dhclient* .leases lrw,
/{,
+ /run/aethercast
# synce-hal share/synce- hal/dhclient. conf r,
/usr/
I performed the following according to the merge diff:
* sudo mv /etc/dhcp/ dhclient- enter-hooks. d/aethercast/ dhclient- hook-p2p /etc/dhcp/ dhclient- enter-hooks. d/aethercast dhclient- enter-hooks. d/aethercast/ dhclient- hook-p2p
* sudo chmod 755 /etc/dhcp/
added the asterisk to leases: d/usr.sbin. aethercasphable t@ubuntu- phablet: /etc/apparmor. d/dhcpd. d$ diff -c /home/phablet/ aether- silo/dhcpd. d/usr.sbin. aethercast. orig /etc/apparmor. d/dhcpd. d/usr.sbin. aethercast aether- silo/dhcpd. d/usr.sbin. aethercast. orig 2016-11-09 14:40:05.984798320 +0100 d/dhcpd. d/usr.sbin. aethercast 2016-11-09 14:40:21.054798320 +0100 aethercast/ dhcpd.conf r, }run/aethercast /dhcpd* .leases lrw, }run/aethercast /dhcpd* .pid lrw, aethercast/ dhcpd.conf r, }run/aethercast /dhcpd* .leases* lrw, }run/aethercast /dhcpd* .pid lrw,
mor.d/dhcpd.
*** /home/phablet/
--- /etc/apparmor.
***************
*** 11,15 ****
/etc/
# In addition aethercast will also point dhcpd to a private
# lease/pid file
! /{,var/
/{,var/
--- 11,15 ----
/etc/
# In addition aethercast will also point dhcpd to a private
# lease/pid file
! /{,var/
/{,var/
After reboot, the M10 FHD on so changed OTA-13 connects successfully to a Microsoft Wireless Display Adapter.
On the first connect, I see no new default route added (checked by "ip r l").
But, after disconnecting and reconnecting, a default route appears:
$ ip r l
default via 192.168.157.1 dev p2p0
default via 192.168.1.254 dev wlan0 proto static metric 600
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.33 metric 600
192.168.7.0/24 dev p2p0 proto kernel scope link src 192.168.7.1
192.168.157.0/24 dev p2p0 proto kernel scope link src 192.168.157.100
It works multiple times without new default route only after moving the enter hook one directory up:
$ sudo mv /etc/dhcp/ dhclient- enter-hooks. d/aethercast/ dhclient- hook-p2p /etc/dhcp/ dhclient- enter-hooks. d/
Could there be a restriction that dhclient does not look at the enter-hooks directory recursively?