#!/bin/sh ### BEGIN INIT INFO # Provides: plymouth-log # Required-Start: $local_fs $remote_fs # Required-Stop: $local_fs $remote_fs # Should-Start: # Should-Stop: # Default-Start: S # Default-Stop: # Short-Description: Inform plymouth that /var/log is writable ### END INIT INFO global PATH := '"/sbin:/bin:/usr/sbin:/usr/bin'" global NAME := '"plymouth-log'" global DESC := '"Boot splash manager (write log file)'" test -x /bin/plymouth || exit 0 if test -r "/etc/default/$(NAME)" { source "/etc/default/${NAME}" } source /lib/lsb/init-functions set -e matchstr $(1) { start { if plymouth --ping { /bin/plymouth update-root-fs --read-write } } stop|restart|force-reload { } * { echo "Usage: $(0) {start|stop|restart|force-reload}" > !2 exit 1 } } exit 0 (CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:PATH) op: Equal rhs: {(DQ ("/sbin:/bin:/usr/sbin:/usr/bin"))} spids: [35] ) ] spids: [35] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:NAME) op:Equal rhs:{(DQ (plymouth-log))} spids:[40])] spids: [40] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:DESC) op: Equal rhs: {(DQ ("Boot splash manager (write log file)"))} spids: [45] ) ] spids: [45] ) (AndOr children:[(C {(test)} {(-x)} {(/bin/plymouth)})(C {(exit)} {(0)})] op_id:Op_DPipe) (If arms: [ (if_arm cond: [ (C {(Lit_Other "[")} {(-r)} {(DQ (/etc/default/) (${ VSub_Name NAME))} {(Lit_Other "]")}) ] action: [(C {(.)} {(DQ (/etc/default/) (${ VSub_Name NAME))})] spids: [-1 79] ) ] spids: [-1 91] ) (C {(.)} {(/lib/lsb/init-functions)}) (C {(set)} {(-e)}) (Case to_match: {(DQ (${ VSub_Number 1))} arms: [ (case_arm pat_list: [{(start)}] action: [ (If arms: [ (if_arm cond: [(C {(plymouth)} {(--ping)})] action: [(C {(/bin/plymouth)} {(update-root-fs)} {(--read-write)})] spids: [-1 126] ) ] spids: [-1 136] ) ] spids: [115 116 139 -1] ) (case_arm pat_list:[{(stop)}{(restart)}{(force-reload)}] spids:[143148152-1]) (case_arm pat_list: [{(Lit_Other "*")}] action: [ (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:[170])] ) (C {(exit)} {(1)}) ] spids: [156 157 179 -1] ) ] spids: [104 112 181] ) (C {(exit)} {(0)}) ] )