update webif for last busybox httpd password change
authorFelix Fietkau <nbd@openwrt.org>
Sat, 4 Feb 2006 01:35:14 +0000 (01:35 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 4 Feb 2006 01:35:14 +0000 (01:35 +0000)
SVN-Revision: 3123

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

index 9208086ecbf73a8ad6c90240d6c7ea2d186fb599..7ecf0882fe6fe4aac0d28199ef5b23a4a5739e1a 100644 (file)
@@ -191,8 +191,8 @@ EOF
 apply_passwd() {
        case ${SERVER_SOFTWARE%% *} in
                busybox)
-                       echo -n '/cgi-bin/webif:' > /etc/httpd.conf
-                       grep root /etc/passwd | cut -d: -f1,2 >> /etc/httpd.conf
+                       echo '/cgi-bin/webif:root:$p$root' > /etc/httpd.conf
+                       echo '/cgi-bin/webif:admin:$p$root' >> /etc/httpd.conf
                        killall -HUP httpd
                        ;;
                mini_httpd/*)