summaryrefslogblamecommitdiffstats
path: root/source/a/sysvinit-scripts/scripts/rc.loop
blob: 6d15a60f87c11de22f58484d00907430c666ce21 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
           









                                                
#!/bin/bash
#
# Load the loop device kernel module.
#

if modinfo loop 1> /dev/null 2> /dev/null ; then
  if ! lsmod | grep -wq "^loop" ; then
    modprobe loop
  fi
fi