Fix nixio postinst
authorSteven Barth <steven@midlink.org>
Wed, 4 Mar 2009 17:41:55 +0000 (17:41 +0000)
committerSteven Barth <steven@midlink.org>
Wed, 4 Mar 2009 17:41:55 +0000 (17:41 +0000)
libs/nixio/ipkg/postinst

index 0863c22..fb1c99a 100755 (executable)
@@ -1,4 +1,4 @@
 #!/bin/sh
 #!/bin/sh
-[ -n "${IPKG_INSTROOT}" -a -f "/etc/uci-defaults/nixio" ] || {
+[ -z "${IPKG_INSTROOT}" -a -f "/etc/uci-defaults/nixio" ] && {
        ( . /etc/uci-defaults/nixio ) && rm -f /etc/uci-defaults/nixio
 }
        ( . /etc/uci-defaults/nixio ) && rm -f /etc/uci-defaults/nixio
 }