#!/bin/ash if [ -x "$(command -v bash)" ]; then echo "bash is installed, good" else echo "Bash is not here I'll install it" opkg update okpkg install bash fi # now run the main restore script ./restore.bash