don't set webif password if the entered root password didn't match (#191)
authorFelix Fietkau <nbd@openwrt.org>
Tue, 10 Jan 2006 21:40:00 +0000 (21:40 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 10 Jan 2006 21:40:00 +0000 (21:40 +0000)
SVN-Revision: 2888

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

index dce57dd6c262ba9c84ee8f7dea5da776e45dd888..9208086ecbf73a8ad6c90240d6c7ea2d186fb599 100644 (file)
@@ -119,8 +119,7 @@ EOF
                                echo "$FORM_passwd1"
                                sleep 1
                                echo "$FORM_passwd2"
-                       ) | passwd root
-                       apply_passwd
+                       ) | passwd root && apply_passwd
                        echo '</pre>'
                        footer
                        exit