From 872163eaac662c1c0a0fa43efa40a81aa10c2907 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 10 Oct 2005 10:44:34 +0000 Subject: [PATCH] fix more typos SVN-Revision: 2094 --- openwrt/package/webif/files/usr/lib/webif/webif.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/openwrt/package/webif/files/usr/lib/webif/webif.sh b/openwrt/package/webif/files/usr/lib/webif/webif.sh index 973099cd0b..a2c889158a 100644 --- a/openwrt/package/webif/files/usr/lib/webif/webif.sh +++ b/openwrt/package/webif/files/usr/lib/webif/webif.sh @@ -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 '
'
 			(
 				echo "$FORM_passwd1"
-- 
2.30.2