File: test-command-line

package info (click to toggle)
isenkram 0.69
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,356 kB
  • sloc: python: 560; sh: 321; perl: 53; makefile: 25
file content (25 lines) | stat: -rwxr-xr-x 485 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

set -e

PATH=/usr/sbin:$PATH
export PATH

at_exit() {
    echo "info: test exiting"
}

trap at_exit INT TERM EXIT

echo "info: PCI devices"
lspci -nn 2>&1 || true
echo "info: USB devices"
lsusb 2>&1 || true
echo "info: Running isenkram-lookup"
isenkram-lookup 2>&1
echo "info: Running isenkram-autoinstall-firmware"
if isenkram-autoinstall-firmware 2>&1 ; then
    :
else
    echo "info: isenkram-autoinstall-firmware exited with error code $! - no firmware to install?"
fi