Unverified Commit 5f704a15 authored by Michal Hrusecky's avatar Michal Hrusecky 🦎

cert-backup: Fix copy & paste error

parent d0894c52
......@@ -36,7 +36,7 @@ mkdir "$WORKDIR"
trap "umount -fl '$WORKDIR' || true; rmdir '$WORKDIR' || true" EXIT INT QUIT TERM ABRT
test -z "$(ls -A "$WORKDIR")"
MMC="$(sed -n 's|\(/dev/mmcblk[01]p1\) / btrfs.*|\1|p')"
MMC="$(sed -n 's|\(/dev/mmcblk[01]p1\) / btrfs.*|\1|p' /proc/mounts)"
if [ -z "$MMC" ] && [ -b "$PARTITION" ]; then
mount -t jffs2 -o compr=none "$PARTITION" "$WORKDIR"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment