Skip to content

Commit

Permalink
Merge pull request #157 from flreinhard/improve-removing-audio-messag…
Browse files Browse the repository at this point in the history
…es-during-boot

Improve removing audio messages during boot
  • Loading branch information
roleoroleo authored Nov 11, 2023
2 parents 1276c0f + cf2fdac commit 4b85364
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions sdhack/boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ mkdir -p /var/log
mount --bind /var/sdcard/log /var/log

# Remove audio messages during boot
touch /tmp/di.wav
touch /tmp/Internet_connected_Welcome_to_use_cloud_camera.wav
touch /tmp/WiFi_connect_success.wav
touch /tmp/EmptyAudio.wav

WAV_FILE_DIR=/mnt/mtd/ipc/app/res/En
[ -d /mnt/mtd/ipc/app/snd/english ] && WAV_FILE_DIR=/mnt/mtd/ipc/app/snd/english

mount --bind /tmp/di.wav $WAV_FILE_DIR/di.wav
mount --bind /tmp/Internet_connected_Welcome_to_use_cloud_camera.wav $WAV_FILE_DIR/Internet_connected_Welcome_to_use_cloud_camera.wav
mount --bind /tmp/WiFi_connect_success.wav $WAV_FILE_DIR/WiFi_connect_success.wav
mount --bind /tmp/EmptyAudio.wav $WAV_FILE_DIR/di.wav
mount --bind /tmp/EmptyAudio.wav $WAV_FILE_DIR/Internet_connected_Welcome_to_use_cloud_camera.wav
mount --bind /tmp/EmptyAudio.wav $WAV_FILE_DIR/WiFi_connect_success.wav
mount --bind /tmp/EmptyAudio.wav $WAV_FILE_DIR/Please_use_mobile_phone_for_WiFi_configuration.wav

# Add script for network management
cp /mnt/mtd/ipc/app/script/dhcp.sh /tmp/dhcp.sh
Expand Down

0 comments on commit 4b85364

Please sign in to comment.