fix more typos
authorFelix Fietkau <nbd@openwrt.org>
Mon, 10 Oct 2005 10:44:34 +0000 (10:44 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 10 Oct 2005 10:44:34 +0000 (10:44 +0000)
SVN-Revision: 2094

openwrt/package/webif/files/usr/lib/webif/webif.sh

index 973099cd0be908fc6139893222b62bb323b6172b..a2c889158a196ff0f247d795dfef93fb6f8392cc 100644 (file)
@@ -17,6 +17,12 @@ equal() {
                *) return 255 ;;
        esac
 }
+neq() {
+       case "$1" in
+               "$2") return 255 ;;
+               *) return 0 ;;
+       esac
+}
 # very crazy, but also very fast :-)
 exists() {
        ( < $1 ) 2>&-
@@ -100,8 +106,8 @@ Pragma: no-cache
                                $_head
                                $ERROR
 EOF
-       empty "$REMOTE_USER" && equal "${SCRIPT_NAME#/cgi-bin/}" "webif.sh" && {
-               empty "$FORM_passwd" && {
+       empty "$REMOTE_USER" && neq "${SCRIPT_NAME#/cgi-bin/}" "webif.sh" && {
+               empty "$FORM_passwd" || {
                        echo '<pre>'
                        (
                                echo "$FORM_passwd1"