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)
commit21df4e713047d63bdfea4c413b7d943670fc5722
tree3ac6b656ac7724288d4633166b834a84fee700f3
parent34b410536ccf04a0967a60017671a40c0ceb5e14
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34974 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/base-files/files/sbin/sysupgrade