Ticket #14665: routines.sh.diff
| File routines.sh.diff, 679 bytes (added by , 9 years ago) |
|---|
-
routines.sh
old new 123 123 test -n "${unit_path}" || \ 124 124 { echo "$self: systemd unit path not found" >&2 && return 1; } 125 125 description=`sed -n 's/# *Short-Description: *\(.*\)/\1/p' "${script}"` 126 required=`sed -n 's/# *Required-Start: *\(.*\)/\1/p' "${script}" `126 required=`sed -n 's/# *Required-Start: *\(.*\)/\1/p' "${script}" | tr -d '$'` 127 127 runlevels=`sed -n 's/# *Default-Start: *\(.*\)/\1/p' "${script}"` 128 128 before=`for i in ${runlevels}; do printf "runlevel${i}.target "; done` 129 129 after=`for i in ${required}; do printf "${i}.service "; done`

