Skip to content
Snippets Groups Projects
Commit d4e05d47 authored by Florian Pose's avatar Florian Pose
Browse files

Abort, if MAJOR number could not be determined.

parent 2096821c
No related branches found
No related tags found
No related merge requests found
......@@ -186,6 +186,11 @@ start)
# get dynamic major number
MAJOR=$(awk "\$2==\"EtherCAT\" {print \$1}" /proc/devices)
if [ -z "${MAJOR}" ]; then
echo "Failed to get device major number!"
${RMMOD} ec_master
exit_fail
fi
# create character devices
for i in ${MASTER_INDICES}; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment