From 122fb9665411d16ad2b2207d10435d58574d3cd8 Mon Sep 17 00:00:00 2001
From: Nico Schottelius <nico@bento.schottelius.org>
Date: Wed, 18 Dec 2013 18:09:57 +0100
Subject: [PATCH] use default parameter for __start_on_boot type

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
---
 cdist/conf/type/__start_on_boot/gencode-remote          | 2 +-
 cdist/conf/type/__start_on_boot/parameter/default/state | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 100644 cdist/conf/type/__start_on_boot/parameter/default/state

diff --git a/cdist/conf/type/__start_on_boot/gencode-remote b/cdist/conf/type/__start_on_boot/gencode-remote
index 58ff6a4a..a8abebbc 100755
--- a/cdist/conf/type/__start_on_boot/gencode-remote
+++ b/cdist/conf/type/__start_on_boot/gencode-remote
@@ -19,7 +19,7 @@
 #
 #
 
-state_should="$(cat "$__object/parameter/state" 2>/dev/null || echo present)"
+state_should="$(cat "$__object/parameter/state")"
 state_is=$(cat "$__object/explorer/state")
 
 # Short circuit if nothing is to be done
diff --git a/cdist/conf/type/__start_on_boot/parameter/default/state b/cdist/conf/type/__start_on_boot/parameter/default/state
new file mode 100644
index 00000000..e7f6134f
--- /dev/null
+++ b/cdist/conf/type/__start_on_boot/parameter/default/state
@@ -0,0 +1 @@
+present