summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/load.sh5
-rwxr-xr-xscripts/test_configfs.sh4
-rwxr-xr-xscripts/unload.sh3
3 files changed, 11 insertions, 1 deletions
diff --git a/scripts/load.sh b/scripts/load.sh
index 2cd472d..82f613a 100755
--- a/scripts/load.sh
+++ b/scripts/load.sh
@@ -4,7 +4,10 @@
insmod avirt_core.ko
# Load the additional Audio Paths
-#insmod dummy/avirt_dummyap.ko
+insmod dummy/avirt_dummyap.ko
insmod loopback/avirt_loopbackap.ko
+# Run the test script
+./scripts/test_configfs.sh
+
echo "Drivers Loaded!"
diff --git a/scripts/test_configfs.sh b/scripts/test_configfs.sh
index 1ae0fe5..baa5e58 100755
--- a/scripts/test_configfs.sh
+++ b/scripts/test_configfs.sh
@@ -4,14 +4,18 @@ mkdir -p /config && mount -t configfs none /config
mkdir /config/avirt/streams/playback_media
echo "2">/config/avirt/streams/playback_media/channels
+echo "ap_loopback">/config/avirt/streams/playback_media/map
mkdir /config/avirt/streams/playback_navigation
echo "1">/config/avirt/streams/playback_navigation/channels
+echo "ap_loopback">/config/avirt/streams/playback_navigation/map
mkdir /config/avirt/streams/playback_emergency
echo "1">/config/avirt/streams/playback_emergency/channels
+echo "ap_loopback">/config/avirt/streams/playback_emergency/map
mkdir /config/avirt/streams/capture_voice
echo "1">/config/avirt/streams/capture_voice/channels
+echo "ap_loopback">/config/avirt/streams/capture_voice/map
echo "1">/config/avirt/streams/sealed
diff --git a/scripts/unload.sh b/scripts/unload.sh
index a011a2b..2c158d5 100755
--- a/scripts/unload.sh
+++ b/scripts/unload.sh
@@ -1,5 +1,8 @@
#!/bin/sh
+rmdir /config/avirt/streams/playback_*
+rmdir /config/avirt/streams/capture_*
+
rm_module() {
lsmod |grep "^$1\>" && rmmod $1 || true
}