Merge pull request #46 from marcosps/remove_loadmods

Remove not used virtme-loadmods script
diff --git a/setup.py b/setup.py
index a0b804e..074304c 100755
--- a/setup.py
+++ b/setup.py
@@ -37,7 +37,6 @@
         'virtme.guest': [
             'virtme-init',
             'virtme-udhcpc-script',
-            'virtme-loadmods',
         ],
     },
     classifiers=['Environment :: Console',
diff --git a/virtme/guest/virtme-init b/virtme/guest/virtme-init
index f60faa5..5852b22 100755
--- a/virtme/guest/virtme-init
+++ b/virtme/guest/virtme-init
@@ -104,7 +104,6 @@
 install -d /run/dbus
 
 # Try to get udevd to coldplug everything.
-# We could use virtme-loadmods as a lightweight alternative.
 if [[ -n "$udevd" ]]; then
     if [[ -e '/sys/kernel/uevent_helper' ]]; then
        # This kills boot performance.
diff --git a/virtme/guest/virtme-loadmods b/virtme/guest/virtme-loadmods
deleted file mode 100755
index 2c16db2..0000000
--- a/virtme/guest/virtme-loadmods
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-# -*- mode: python -*-
-# virtme-loadmods: load modules for all available devices
-# Copyright © 2014 Andy Lutomirski
-# Licensed under the GPLv2, which is available in the virtme distribution
-# as a file called LICENSE with SHA-256 hash:
-# 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643
-
-export PATH=/bin:/sbin:/usr/bin:/usr/sbin
-export TERM=linux
-
-log() {
-    if [[ -e /dev/kmsg ]]; then
-	echo "<6>virtme-loadmods: $*" >/dev/kmsg
-    else
-	echo "virtme-loadmods: $*"
-    fi
-}
-
-log 'looking for modaliases'
-mods="$(find /sys/devices -type f -name modalias -print0 |xargs -0 cat |sort |uniq)"
-
-log "requesting $(echo "$mods" |wc -w) modules"
-modprobe -q -a -- $mods
-
-log 'done'
-
-exit 0