sysupgrade: do not require an extra argument after --restore-backup
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 2 Jan 2013 16:21:26 +0000 (16:21 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 2 Jan 2013 16:21:26 +0000 (16:21 +0000)
commit58070b0083989218b92dfe8913796c8bc1829ba1
tree4f07054cd7fc5d83c3dab916bf15dcb9ce039ea0
parent741f6ba7efb92d2abdb34d92db08d408908b5193
sysupgrade: do not require an extra argument after --restore-backup

Neither --create-backup nor --restore-backup need an image name (following
the backup filename). Treat them in uniform way.

Mostly fixes #12346.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
SVN-Revision: 34974
package/base-files/files/sbin/sysupgrade