File: versioned

package info (click to toggle)
modutils 2.3.11-13.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,156 kB
  • ctags: 1,038
  • sloc: ansic: 10,567; sh: 2,120; lex: 484; makefile: 479; yacc: 362
file content (20 lines) | stat: -rw-r--r-- 549 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh -e
# This sample demonstrates how to use a script in /etc/modules.
#
# This scripts adds support for kernel-specific modules. It checks if
# there is a subdirectory for your specific kernel (for example
# /etc/modutils/2.0.34) and adds all files in there. Then it checks if
# there is a subdirectory for your kernel-family (for example
# /etc/modutils/2.0) and adds all files in there.

scandir() {
	if [ -d $1 ]; then
		for i in [ $1/* ]; do
			cat $i
		done
	fi
}

scandir /etc/modutils/`uname -r`
scandir /etc/modutils/`kernelversion`