File: cloop-module-_KVERS_.postinst.modules.in

package info (click to toggle)
cloop 3.14.1.2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,752 kB
  • sloc: cpp: 12,072; ansic: 4,924; sh: 3,444; makefile: 407
file content (22 lines) | stat: -rw-r--r-- 467 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh -e
# source debconf library
#export DEBCONF_DEBUG=developer
. /usr/share/debconf/confmodule

if [ "$1" = "configure" ] ; then
   db_get cloop/createdevs || true
   if [ "$RET" = "true" ] ; then
      if test ! -e /dev/cloop; then
         for x in `seq 0 7` ; do
            mknod /dev/cloop$x b 240 $x || true
            ln -sf cloop0 /dev/cloop || true
         done
      fi
   fi
fi

if [ "`uname -r`" = _KVERS_ ] ; then
   depmod -a &
fi

#DEBHELPER#