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
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
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
3 matches
Mail list logo