#!/bin/sh -e ### BEGIN INIT INFO # Provides: pppd-dns # Required-Start: $local_fs # Required-Stop: # Default-Start: S # Default-Stop: # Short-Description: Restore resolv.conf if the system crashed. # Description: Restore /etc/resolv.conf if the system crashed before the # ppp link was shut down. ### END INIT INFO source /lib/lsb/init-functions matchstr $1 { start { } stop|restart|force-reload { exit 0 } * { echo "Usage: $0 {start|stop|restart|force-reload}" > !2; exit 1 } } test -x /etc/ppp/ip-down.d/0000usepeerdns \ && exec /etc/ppp/ip-down.d/0000usepeerdns (CommandList children: [ (C {(.)} {(/lib/lsb/init-functions)}) (Case to_match: {(DQ ($ VSub_Number "$1"))} arms: [ (case_arm pat_list:[{(start)}] spids:[484951-1]) (case_arm pat_list: [{(stop)} {(restart)} {(force-reload)}] action: [(C {(exit)} {(0)})] spids: [54 59 65 -1] ) (case_arm pat_list: [{(Lit_Other "*")}] action: [ (Sentence child: (SimpleCommand words: [ {(echo)} {(DQ ("Usage: ") ($ VSub_Number "$0") (" {start|stop|restart|force-reload}"))} ] redirects: [(Redir op_id:Redir_GreatAnd fd:-1 arg_word:{(2)} spids:[79])] ) terminator: ) (C {(exit)} {(1)}) ] spids: [68 69 87 -1] ) ] spids: [39 45 89] ) (AndOr children: [ (C {(Lit_Other "[")} {(-x)} {(/etc/ppp/ip-down.d/0000usepeerdns)} {(Lit_Other "]")}) (C {(exec)} {(/etc/ppp/ip-down.d/0000usepeerdns)}) ] op_id: Op_DAmp ) ] )