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)
commitc828aea9b6b6fb461ec73ce31148b33f9fa9e037
tree3ac6b656ac7724288d4633166b834a84fee700f3
parent0b6e76d790b6e1ecb76f2baaeb062fcb0c50a538
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