Commit 722c3364 authored by Federico Vaga's avatar Federico Vaga Committed by Adam Wujek

userspace:init: get kernel version at runtime

The kernel version is hardcoded here. Take it at runtime by using
`uname -r`. This will reduce incompatibilities on kernel updates
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 9432210d
......@@ -16,9 +16,9 @@ if [ -n "$WRS_VERBOSE" ]; then
fi
# This used to be S01modules
insmod /lib/modules/2.6.39/kernel/g_serial.ko
insmod /lib/modules/`uname -r`/kernel/g_serial.ko
rmmod g_serial
insmod /lib/modules/2.6.39/kernel/g_serial.ko
insmod /lib/modules/`uname -r`/kernel/g_serial.ko
/bin/mkdir -p /dev/pts
/bin/mkdir -p /dev/shm
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment