+# if we're using systemd then redefine functions
+# for output in systemd style
+if [ "$(cat /proc/1/comm 2>/dev/null)" = "systemd" ] ; then
+ einfo() {
+ printf "[ ${GREEN}OK${NORMAL} ] %s\n" "$*"
+ }
+
+ ewarn() {
+ printf "[ ${YELLOW}WARN${NORMAL} ] %s\n" "$*"
+ }
+
+ eerror() {
+ printf "[ ${RED}FAIL${NORMAL} ] %s\n" "$*"
+ }
+
+ eend() {
+ :
+ }
+fi
+