Files

14 lines
505 B
Bash

#!/bin/bash
cd /root/krd24 || exit 1
echo "=== squashfs info:"
unsquashfs -s filesystem.squashfs | head -25
echo
echo "=== число файлов:"
unsquashfs -l filesystem.squashfs 2>/dev/null | wc -l
echo
echo "=== live_env.sh строки 60-95:"
unsquashfs -cat filesystem.squashfs etc/KRD/live_env.sh 2>/dev/null | sed -n '60,95p' | cat -n
echo
echo "=== есть ли xattr в образе (пример):"
unsquashfs -l filesystem.squashfs 2>/dev/null | grep -E 'usr/bin/(ping|su|passwd)$' | head