diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vsp-lib.sh | 8 |
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/\[.*//') |