Skip to content

Instantly share code, notes, and snippets.

@mpanighetti
Last active December 8, 2021 15:28
Show Gist options
  • Select an option

  • Save mpanighetti/4f3a6489901a68eeeb1f7bc904fd22c3 to your computer and use it in GitHub Desktop.

Select an option

Save mpanighetti/4f3a6489901a68eeeb1f7bc904fd22c3 to your computer and use it in GitHub Desktop.

Revisions

  1. mpanighetti revised this gist Jun 28, 2019. No changes.
  2. mpanighetti created this gist Jan 7, 2019.
    5 changes: 5 additions & 0 deletions Controller Model.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #!/bin/bash

    echo "<result>$(/usr/sbin/system_profiler SPiBridgeDataType | /usr/bin/awk -F": " '/Model Name/ {print $NF}')</result>"

    exit 0