You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
307 B

if [ "$#" -ne 1 ]; then
echo "[ERR] Please pass in the tag for the file name."
exit 1
# Falls back to busybox tar syntax if running on openwrt busybox tar rather than GNU tar
tar -czvf $filename usr/ etc/ || tar c -zvf $filename usr/ etc/