5 # Compile and install a custom udev-watchdog program
7 echo 'compiling and installing a custom udev-watchdog program'
9 apt-get
install --yes build-essential binutils libudev-dev
11 SRC
="/usr/src/udev-watchdog.c"
12 DST
="/usr/local/sbin/udev-watchdog"
14 gcc
-o "$DST" "$SRC" -static -Wall -ludev
15 strip
--strip-all "$DST"
17 apt-get
--yes purge libudev-dev