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