Bug#628003: Improved yet again

2011-06-05 Thread Thomas Hood
On 05/06/11 22:44, Simon Kelley wrote: > ACK. I'm surprised that invoke-rc.d isn't universal now, but if the > rules is there, we must obey. To be sure I went looking for documentation. I found policy ยง9.3.3.2 which gives this sample code snippet: if which invoke-rc.d >/dev/null 2>&1

Bug#628003: Improved yet again

2011-06-05 Thread Simon Kelley
Thomas Hood wrote: > I now remember that we aren't supposed to assume that invoke-rc.d > is present. Here's a new version of the script. // Thomas > > #!/bin/sh > # Resolvconf packaging event hook script for the dnsmasq package > > restart_dnsmasq() { > if which invoke-rc.d >/dev/null 2>&1

Bug#628003: Improved yet again

2011-06-04 Thread Thomas Hood
I now remember that we aren't supposed to assume that invoke-rc.d is present. Here's a new version of the script. // Thomas #!/bin/sh # Resolvconf packaging event hook script for the dnsmasq package restart_dnsmasq() { if which invoke-rc.d >/dev/null 2>&1 ; then invoke-rc.d dnsmasq