From 2f25b617f873fbbdad59794b819a77fe8ef01435 Mon Sep 17 00:00:00 2001
From: Guillem Jover <guillem@debian.org>
Date: Sat, 30 Apr 2016 16:20:25 +0200
Subject: [PATCH] pppconfig: Fix LSB init output

---
 dns-clean | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dns-clean b/dns-clean
index a22b449..49b6cbc 100755
--- a/dns-clean
+++ b/dns-clean
@@ -22,6 +22,8 @@
 #              to clean up any such mess.
 ### END INIT INFO
 
+. /lib/lsb/init-functions
+
 PATH=/sbin:/bin:/usr/sbin:/usr/bin
 
 test -f /usr/sbin/pppconfig || exit 0
@@ -30,8 +32,9 @@ test -f /etc/ppp/ip-down.d/0dns-down || exit 0
 
 case "$1" in
   start)
-	/bin/echo -n "Running 0dns-down to make sure resolv.conf is ok..."
-	/etc/ppp/ip-down.d/0dns-down "0dns-clean" && /bin/echo "done."
+	log_begin_msg "Running 0dns-down to make sure resolv.conf is ok"
+	/etc/ppp/ip-down.d/0dns-down "0dns-clean"
+	log_end_msg $?
 	;;
   stop|restart|force-reload)
 	;;
-- 
2.8.1

