From 1a718e7c2393423f23ec664459d5b2c5d97197b3 Mon Sep 17 00:00:00 2001
From: Nico Schottelius <nico@kr.ethz.ch>
Date: Fri, 25 Feb 2011 01:20:34 +0100
Subject: [PATCH] adjust gencode of type __file

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
---
 conf/type/__file/gencode | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/conf/type/__file/gencode b/conf/type/__file/gencode
index ed1fae90..ca8f88a2 100755
--- a/conf/type/__file/gencode
+++ b/conf/type/__file/gencode
@@ -22,13 +22,13 @@
 # example for typewrites later
 #
 
-type="$(cat parameters/type)"
+type="$(cat "$__object/parameter/type")"
 
 # If destination was specified, do not use the id
-if [ -f parameters/destination ]; then
-   destination="$(cat parameters/destination)"
+if [ -f "$__object/parameter/destination" ]; then
+   destination="$(cat "$__object/parameter/destination")"
 else
-   destination="$1"
+   destination="$__object_id"
 fi
 
 case "$type" in
@@ -46,7 +46,7 @@ case "$type" in
    ;;
 esac
 
-if [ -f parameters/mode ]; then
-   mode="$(cat parameters/mode)"
+if [ -f "$__object/parameter/mode" ]; then
+   mode="$(cat "$__object/parameters/mode")"
    echo chmod \"$mode\" \"$destination\"
 fi