--- routines.sh.orig	2015-10-04 11:13:43.803413280 +0200
+++ routines.sh	2015-10-04 11:14:20.039414198 +0200
@@ -123,7 +123,7 @@
     test -n "${unit_path}" || \
         { echo "$self: systemd unit path not found" >&2 && return 1; }
     description=`sed -n 's/# *Short-Description: *\(.*\)/\1/p' "${script}"`
-    required=`sed -n 's/# *Required-Start: *\(.*\)/\1/p' "${script}"`
+    required=`sed -n 's/# *Required-Start: *\(.*\)/\1/p' "${script}" | tr -d '$'`
     runlevels=`sed -n 's/# *Default-Start: *\(.*\)/\1/p' "${script}"`
     before=`for i in ${runlevels}; do printf "runlevel${i}.target "; done`
     after=`for i in ${required}; do printf "${i}.service "; done`
