File: check

package info (click to toggle)
dracut 005-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,368 kB
  • ctags: 207
  • sloc: sh: 6,487; ansic: 192; makefile: 108
file content (19 lines) | stat: -rwxr-xr-x 410 bytes parent folder | download | duplicates (2)
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