author | Florian Pose <fp@igh-essen.com> |
Tue, 03 Jun 2008 13:14:11 +0000 | |
changeset 942 | dd13cdafc58c |
parent 941 | 41a993738383 |
child 943 | 1d9e2663e087 |
--- a/script/init.d/ethercat Tue Jun 03 13:13:53 2008 +0000 +++ b/script/init.d/ethercat Tue Jun 03 13:14:11 2008 +0000 @@ -186,6 +186,11 @@ # 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