summaryrefslogtreecommitdiffstats
path: root/scripts/test_configfs_run.sh
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2019-03-01 17:05:29 +1100
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2019-03-01 17:06:32 +1100
commitc87f5681888863acc433d1e129992cc2d29e0463 (patch)
treed10cf92e4d03343080efbafbb559f72523fe3d11 /scripts/test_configfs_run.sh
parent5a80c7caffd53b9c4145768cff9ebd72997c38c3 (diff)
Update some helper scripts
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'scripts/test_configfs_run.sh')
-rwxr-xr-xscripts/test_configfs_run.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/test_configfs_run.sh b/scripts/test_configfs_run.sh
new file mode 100755
index 0000000..b6a56f6
--- /dev/null
+++ b/scripts/test_configfs_run.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+mkdir -p /config && mount -t configfs none /config
+
+mkdir /config/snd-avirt/streams/playback_media
+echo "2">/config/snd-avirt/streams/playback_media/channels
+echo "ap_loopback">/config/snd-avirt/streams/playback_media/map
+
+mkdir /config/snd-avirt/streams/playback_navigation
+echo "1">/config/snd-avirt/streams/playback_navigation/channels
+echo "ap_loopback">/config/snd-avirt/streams/playback_navigation/map
+
+mkdir /config/snd-avirt/streams/playback_emergency
+echo "1">/config/snd-avirt/streams/playback_emergency/channels
+echo "ap_loopback">/config/snd-avirt/streams/playback_emergency/map
+
+mkdir /config/snd-avirt/streams/capture_voice
+echo "1">/config/snd-avirt/streams/capture_voice/channels
+echo "ap_loopback">/config/snd-avirt/streams/capture_voice/map
+
+echo "1">/config/snd-avirt/streams/sealed