update gencode to contain something useful

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-03-02 18:54:31 +01:00
parent 173c6b0d4e
commit 7c34ccde99

View file

@ -21,3 +21,20 @@
# Manage packages on Debian and co. # Manage packages on Debian and co.
# #
if [ -f "$__object/parameter/name" ]; then
name="$__object/parameter/name"
else
name="$__object_id"
fi
state=$(cat "$__object/parameter/state")
case "$state" in
installed)
echo apt-get --quiet --yes install \"$name\"
;;
deinstalled)
echo apt-get --quiet --yes remove \"$name\"
;;
esac