Merge pull request #311 from iandrewt/mac-model

added macOS support for model name
This commit is contained in:
Dylan Araps 2016-08-14 14:14:39 +10:00 committed by GitHub
commit e82b1dd5c0

View file

@ -82,6 +82,8 @@ getmodel() {
"ipod7,1") model="iPod touch 6G" ;; "ipod7,1") model="iPod touch 6G" ;;
esac esac
;; ;;
"Mac OS X") model="$(sysctl -n hw.model)" ;;
esac esac
} }