File: kmod.postinst

package info (click to toggle)
kmod 9-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 11,808 kB
  • sloc: ansic: 12,151; sh: 11,490; xml: 1,605; makefile: 329
file content (23 lines) | stat: -rw-r--r-- 451 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh -e

create_etc_modules() {
  [ -e /etc/modules ] && return 0
  cat <<END > /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.

END
  chmod 644 /etc/modules
}

case "$1" in
  configure)
  create_etc_modules
esac

#DEBHELPER#

exit 0