--- startDM-sd.sh 2017-04-02 15:00:12.041656336 +0200 +++ startDM.sh 2017-04-02 14:48:43.991090773 +0200 @@ -5,8 +5,12 @@ # We need to source /etc/profile for stuff like $LANG to work # bug #10190. . /etc/profile - +if [ -f /etc/init.d/functions.sh ]; then . /etc/init.d/functions.sh +else + echo "Only available on openrc" + exit 0 +fi # baselayout-1 compat if ! type get_options >/dev/null 2>/dev/null ; then