mkdir -p drbd-commands for n in drbdadm drbdsetup drbdmeta ; do test -f drbd-commands/$n || mv $n drbd-commands if test \! -f $n ; then cat > $n << EOF #!/bin/bash logger "DRBD DEBUG: \$0 \$@" exec /sbin/drbd-commands/$n "\$@" EOF chmod 755 $n fi done