Skip to content
Browse files

modsave:

 * improve messages a bit - previously modsave just wrote "unchanged" so that it was sometimes unclear what this "unchanged" is related to
 * refs #2380


git-svn-id: file:///var/svn/freetz/trunk@11805 149334a1-2f27-0410-a3b9-fc62619ac1e6
  • Loading branch information...
1 parent 67516aa commit 1d84ec1981e47c7541fee3b6d4bce666e1b751f2 er13 committed Feb 22, 2014
Showing with 4 additions and 2 deletions.
  1. +4 −2 make/mod/files/root/usr/bin/modsave
View
6 make/mod/files/root/usr/bin/modsave
@@ -26,17 +26,19 @@ save() {
exit 1
fi
+ echo -n "Checking Freetz configuration ... "
if cmp -s $FLASHFILE $TMPFILE; then
echo "unchanged."
else
+ echo "changed."
echo -n "Writing $size bytes to /var/flash/freetz ... "
cat $TMPFILE > /var/flash/freetz 2>/dev/null
rc=$?
if [ $rc -ne 0 ]; then
- echo "write failed"
+ echo "write failed."
rc=1
elif ! cmp -s $FLASHFILE $TMPFILE; then
- echo "verify failed"
+ echo "verify failed."
rc=1
else
echo "done."

0 comments on commit 1d84ec1

Please sign in to comment.
Something went wrong with that request. Please try again.