VirtualBox

Ticket #14665: routines.sh.diff

File routines.sh.diff, 679 bytes (added by Peter Palúch, 9 years ago)

Patch file correcting routines.sh to remove '$' characters from facility names

  • routines.sh

    old new  
    123123    test -n "${unit_path}" || \
    124124        { echo "$self: systemd unit path not found" >&2 && return 1; }
    125125    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 '$'`
    127127    runlevels=`sed -n 's/# *Default-Start: *\(.*\)/\1/p' "${script}"`
    128128    before=`for i in ${runlevels}; do printf "runlevel${i}.target "; done`
    129129    after=`for i in ${required}; do printf "${i}.service "; done`

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy