summaryrefslogtreecommitdiff
path: root/source/a/sysvinit-scripts/scripts/rc.loop
blob: 942fc5447a6441358a0e47f2c95a6926ca1b51ee (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
#
# 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