forked from ungleich-public/cdist
use shortcut version in __package_opkg
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
14a7317bee
commit
ff50a61344
1 changed files with 17 additions and 17 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# 2011 Nico Schottelius (nico-cdist at schottelius.org)
|
# 2011,2013 Nico Schottelius (nico-cdist at schottelius.org)
|
||||||
# 2012 Giel van Schijndel (giel plus cdist at mortis dot eu)
|
# 2012 Giel van Schijndel (giel plus cdist at mortis dot eu)
|
||||||
#
|
#
|
||||||
# This file is part of cdist.
|
# This file is part of cdist.
|
||||||
|
@ -42,8 +42,9 @@ case "$state_is" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "$state_is" != "$state_should" ]; then
|
[ "$state_is" = "$state_should" ] && exit 0
|
||||||
case "$state_should" in
|
|
||||||
|
case "$state_should" in
|
||||||
present)
|
present)
|
||||||
if [ "$present" = "notpresent" ]; then
|
if [ "$present" = "notpresent" ]; then
|
||||||
echo opkg --verbosity=0 update
|
echo opkg --verbosity=0 update
|
||||||
|
@ -57,5 +58,4 @@ if [ "$state_is" != "$state_should" ]; then
|
||||||
echo "Unknown state: $state" >&2
|
echo "Unknown state: $state" >&2
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in a new issue