Отключение звука при старте системы
Отключение приветственного звука скриптом
1. Создайть файл /etc/rc.shutdown.local (скрипт запоминает настройки громкости системы и отключает звук)
2. Создайть файл /etc/rc.local (скрипт восстанавливает настройки громкости при старте системы)
Thanks Mactric
1. Создайть файл /etc/rc.shutdown.local (скрипт запоминает настройки громкости системы и отключает звук)
#!/bin/sh
OSA=/usr/bin/osascript
echo OUTPUT_MUTED=`$OSA -e "output muted of (get volume settings)"`
> /etc/volume.settings
$OSA -e "set volume with output muted"
2. Создайть файл /etc/rc.local (скрипт восстанавливает настройки громкости при старте системы)
#!/bin/sh
OSA=/usr/bin/osascript
if [ -r /etc/volume.settings ]; then
. /etc/volume.settings
# If the volume wasn't muted before shutting down, unmute it on
# startup
if [ $OUTPUT_MUTED = "false" ]; then
$OSA -e "set volume without output muted"
fi
fi
Thanks Mactric
Comments
No new comments allowed (anymore) on this post.