关闭声音:

sudo nvram StartupMute=%01

开启声音:

sudo nvram StartupMute=%00