mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-25 11:44:44 +00:00
Merge pull request #680 from justincormack/diagnostics-mount
Improve matching of mounted drive in diagnostics
This commit is contained in:
commit
f7d275918e
@ -3,7 +3,7 @@
|
||||
printf '\n'
|
||||
DEV="$(find /dev -maxdepth 1 -type b ! -name 'loop*' | grep -v '[0-9]$' | sed 's@.*/dev/@@' | head -1 )"
|
||||
[ $? -eq 0 ] && printf "✓ Drive found: $DEV\n" || printf "✗ No drive found\n"
|
||||
DEV=$(mount | grep '/dev/.*da. on /var type')
|
||||
DEV=$(mount | grep '/dev/.* on /var type')
|
||||
[ $? -eq 0 ] && printf "✓ Drive mounted: $DEV\n" || printf "✗ No drive mounted\n"
|
||||
INET=$(ifconfig eth0 2> /dev/null | grep 'inet addr')
|
||||
[ $? -eq 0 ] && printf "✓ Network connected: $INET\n" || printf "✗ No network connection\n"
|
||||
|
Loading…
Reference in New Issue
Block a user