#! /bin/sh ### BEGIN INIT INFO # Provides: mountnfs-bootclean # Required-Start: $local_fs mountnfs # Required-Stop: # Default-Start: S # Default-Stop: # X-Start-Before: bootmisc # Short-Description: bootclean after mountnfs. # Description: Clean temporary filesystems after # network filesystems have been mounted. ### END INIT INFO source /lib/lsb/init-functions source /lib/init/bootclean.sh matchstr $1 { start|"" { # Clean /tmp, /var/lock, /var/run clean_all exit $Status } restart|reload|force-reload { echo "Error: argument '$1' not supported" > !2 exit 3 } stop|status { # No-op } * { echo "Usage: mountnfs-bootclean.sh [start|stop]" > !2 exit 3 } } : (CommandList children: [ (C {(.)} {(/lib/lsb/init-functions)}) (C {(.)} {(/lib/init/bootclean.sh)}) (Case to_match: {(DQ ($ VSub_Number "$1"))} arms: [ (case_arm pat_list: [{(start)} {(DQ )}] action: [(C {(clean_all)}) (C {(exit)} {($ VSub_QMark "$?")})] spids: [55 59 74 -1] ) (case_arm pat_list: [{(restart)} {(reload)} {(force-reload)}] action: [ (SimpleCommand words: [{(echo)} {(DQ ("Error: argument '") ($ VSub_Number "$1") ("' not supported"))}] redirects: [(Redir op_id:Redir_GreatAnd fd:-1 arg_word:{(2)} spids:[93])] ) (C {(exit)} {(3)}) ] spids: [77 82 102 -1] ) (case_arm pat_list:[{(stop)}{(status)}] spids:[105108115-1]) (case_arm pat_list: [{(Lit_Other "*")}] action: [ (SimpleCommand words: [{(echo)} {(DQ ("Usage: mountnfs-bootclean.sh [start|stop]"))}] redirects: [(Redir op_id:Redir_GreatAnd fd:-1 arg_word:{(2)} spids:[128])] ) (C {(exit)} {(3)}) ] spids: [118 119 137 -1] ) ] spids: [46 52 139] ) (C {(Lit_Other ":")}) ] )