update gencode to contain something useful
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
173c6b0d4e
commit
7c34ccde99
1 changed files with 17 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue