docker/base/entry.sh

14 lines
166 B
Bash
Executable File

#!/bin/bash
set -e
udevd --daemon
udevadm trigger
if CMD="$(command -v grep "$1")"; then
shift
exec "$CMD" "$@"
else
echo "Command not found: $1"
exit 1
fi