Use a group command (AKA "list") - e.g. ` ... || { echo "unsuc" ; exit 1 ; }`.
See `man bash` and search for the `Compound Commands` section.
Alternatively, use an `if` statement, for example:
#!/bin/bash
echo "start"
if ! timeout 10s bash -c 'until ping -w1 -c1 1.1.1.1 >/dev/null 2>&1; do :; done' ; then
echo "unsuc"
exit 1
fi
echo "suc"
exit 0