/sbin/lsmod
shows. You can specify other modules to be loaded at boot time by creating a file in the /etc/sysconfig/modules/
directory. You can use any name you like for the file that you create, but you must give it a .modules
extension, and you must make it executable by running the following command:
modules]# chmod 755 <filename.modules>
bluez-uinput.modules
that loads the uinput
module:
#!/bin/sh if [ ! -c /dev/input/uinput ] ; then exec /sbin/modprobe uinput >/dev/null 2>&1 fi
.modules
file should be a shebang line that gives the location of the bash shell interpreter:
#!/bin/sh
.modules
files are bash scripts. The if-conditional on line 3 tests to make sure that the /dev/input/uinput files does not exist (the ! symbol negates the condition), and, if that is the case, then executes /sbin/modprobe
with the name of the kernel module to load—uinput
in this example. The remainder of the line simply redirects any output so that the modprobe
command is quiet.