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
1 changed files with 2 additions and 0 deletions

View File

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