treewide: Update webui password on password change #22

Closed
rohammer wants to merge 1 commits from rohammer:passwd into master
1 changed files with 4 additions and 1 deletions

View File

@ -13,6 +13,9 @@ export HOME=${HOME:-/root}
[ -x /usr/bin/arp ] || arp() { cat /proc/net/arp; }
[ -x /usr/bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
# update uhttpd passwd on passwd-change
[ -e /etc/rc.d/S50uhttpd ] && passwd() { /bin/passwd && /etc/init.d/uhttpd restart; }
fbl marked this conversation as resolved Outdated
Outdated
Review

Zwei Kleinigkeiten:

  • Ich würde statt auf symbolische Links (-L) auf Datei existiert (-e) prüfen.
  • Außerdem würde ich auch die zusätzliche Ausgabe verzichten.

Ansonsten passts.

Zwei Kleinigkeiten: * Ich würde statt auf symbolische Links (-L) auf Datei existiert (-e) prüfen. * Außerdem würde ich auch die zusätzliche Ausgabe verzichten. Ansonsten passts.

Erledigt. test -e und echo weg.

Erledigt. test -e und echo weg.
# I'm lazy, let's add some aliases
alias ..='cd ..'
alias ...='cd ../..'