#!/bin/sh PATH=/bin:/usr/bin:/sbin:/usr/sbin . /usr/lib/libmodcgi.sh eval "$(modcgi oldpassword:password:replay mod_cgi)" (echo "$MOD_CGI_OLDPASSWORD"; echo "$MOD_CGI_PASSWORD"; echo "$MOD_CGI_REPLAY") | modpasswd freetz > /dev/null 2>&1 result=$? cgi_begin 'Passwort' 'password' if [ "$result" -ne 0 ]; then echo '
$(lang de:"Falsches (altes) Passwort." en:"Wrong (old) password.")
' fi else echo '$(lang de:"Starte Weboberfläche neu..." en:"Restarting webcfg...")
' /etc/init.d/rc.webcfg restart > /dev/null 2>&1 fi cat << EOF EOF cgi_end