Skip to content
  • Dominique Martinet's avatar
    main/dnsmasq: init: add extra setup command hook · d1dad931
    Dominique Martinet authored and Jakub Jirutka's avatar Jakub Jirutka committed
    for cases other than bridges dnsmasq might need some
    extra configuration step before starting
    
    Tested with conf.d value, used for NetworkManager (if it's slow to start
    it won't have time to create required dir for resolv-file, nor setup lo
    if bind-interfaces is set):
    ```
    setup_command=extra_setup
    extra_setup() {
    	ip a add 127.0.0.1/8 dev lo >/dev/null 2>&1
    	ip a add ::1/128 dev lo >/dev/null 2>&1
    	mkdir -p /run/NetworkManager
    }
    ```
    d1dad931