summaryrefslogtreecommitdiff
path: root/modules.d/01fips/check
blob: e5cd87e7be66ecca9cb2cc0492a1b2a11aed2027 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

. $dracutfunctions

for program in ip arping; do 
  which $program >/dev/null 2>&1
  if [ $? -ne 0 ]; then
    dwarning "Could not find program \"$program\" required by network." 
    exit 1
  fi
done
for program in dhclient brctl; do
  which $program >/dev/null 2>&1
  if [ $? -ne 0 ]; then
    dwarning "Could not find program \"$program\" it might be required by network." 
  fi
done
exit 255