bsp: Allow for arguments in passwd function #119
No reviewers
Labels
No Label
RFC
RFT
WIP
blocked
bsp
bug
build/scripts/tools
duplicate
feature
fixed
layer3
mantis
more details required
needs changes
node
packages/fff
rejected
security
trivial
upstream
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: freifunk-franken/firmware#119
Loading…
Reference in New Issue
No description provided.
Delete Branch "fbl/firmware:passwd"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Previously, we have added a passwd function to our shell which executes
passwd and restarts uhttpd afterwards, so the WebUI password is updated.
This adds the ability to still pass command-line arguments to passwd.
Fixes: #117
Signed-off-by: Fabian Bläse fabian@blaese.de
Das ist wichtig.
Auch noch ins stable release?
@ -15,3 +15,3 @@
# update uhttpd passwd on passwd-change
[ -e /etc/rc.d/S50uhttpd ] && passwd() { /bin/passwd && /etc/init.d/uhttpd restart; }
[ -e /etc/rc.d/S50uhttpd ] && passwd() { /bin/passwd "$@" && /etc/init.d/uhttpd restart; }
Machen die Anführungszeichen nicht aus mehreren Argumenten eines?
Erstaunlicherweise: nein.
Würde sich das $@ "normal" verhalten, wärs sowohl mit als auch ohne falsch:
$@ ist aber ein "Special Parameter", für den besondere Regeln gelten:
(Aus der bash man-page)
Hinweis auf das besondere Quoting von $@ hinzugefügt und applied.
Pull request closed