summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vsp-lib.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh
index 02376e8..9b9c3c8 100755
--- a/scripts/vsp-lib.sh
+++ b/scripts/vsp-lib.sh
@@ -13,6 +13,14 @@ vsp1_device() {
$mediactl -d $mdev -p | grep 'bus info' | sed 's/.*platform://'
}
+vsp1_model() {
+ $mediactl -d $mdev -p | grep 'model' | sed 's/.* //'
+}
+
+vsp1_generation() {
+ echo $(vsp1_model) | sed 's/-.*//'
+}
+
vsp1_has_feature() {
local feature=$1
local entity_name=$(echo $feature | sed 's/\[.*//')