aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-01 17:47:44 +1000
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-26 17:27:36 +1100
commit81693e7f5e73c8fde658a2a050f85dd8481a1057 (patch)
tree81b4d1d25c56b6e9eecbb9e60a25560c510c7a00 /scripts
parent3247d61d378afd8fc76f1e9182e5691bd538ab3f (diff)
Add configfs test script
Add initial bash script for configuring AVIRT via the configfs Linux filesystem Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/test_configfs.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/test_configfs.sh b/scripts/test_configfs.sh
new file mode 100755
index 0000000..1ae0fe5
--- /dev/null
+++ b/scripts/test_configfs.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+mkdir -p /config && mount -t configfs none /config
+
+mkdir /config/avirt/streams/playback_media
+echo "2">/config/avirt/streams/playback_media/channels
+
+mkdir /config/avirt/streams/playback_navigation
+echo "1">/config/avirt/streams/playback_navigation/channels
+
+mkdir /config/avirt/streams/playback_emergency
+echo "1">/config/avirt/streams/playback_emergency/channels
+
+mkdir /config/avirt/streams/capture_voice
+echo "1">/config/avirt/streams/capture_voice/channels
+
+echo "1">/config/avirt/streams/sealed