此Shell Script可隨機更改MZD Connect的背景圖片(10張隨機背景圖片)。
==============chg_back.sh======================================
#!/bin/sh
# Purpose: To Change MZD Connect Background Picture(0~9).
# Author: blog_yesican_tw
# file name: chg_back.sh
mount -o rw,remount /
no=`echo $RANDOM | cut -c 2`
file=`/bin/ls /jci/gui/common/images/background$no.png`
echo "Change MZD Connect Background Picture with $file"
cp $file /jci/gui/common/images/background.png
================================================================
注意事項:
1.適用配備新一代MZD Connect之馬自達車系。
2.您必須具備自行製作或能取得800X481之png圖檔。
3.您最少必須具備如何用ssh登入MZD Connect之基本技能。
4.利用此shell script亦可達到每次汽車發動後隨機自動變換背景圖(寫此程式之原始用途),由於需更動原廠設定,故不提供進一步資訊。
5.本人僅提供方式,任何由此shell script造成之損壞請自行承擔。
6.最後叮嚀:無unix知識背景者請勿嘗試。
再附上撥放影片的shell script....(BJ4.......看不懂請自行略過)
==============playmp4.sh===============================================
#!/bin/sh
# Purpose: MZD Connect Playing MP4 file
# Author: blog_yesican_tw
# file name: playmp4.sh
video_file=/mnt/sda1/$1
gst-launch filesrc location="$video_file" typefind=true ! aiurdemux name=demux demux. ! queue max-size-buffers=0 max-size-time=0 ! vpudec ! mfw_v4lsink demux. ! queue max-size-buffers=0 max-size-time=0 ! beepdec ! audioconvert ! 'audio/x-raw-int, channels=2' ! alsasink
========================================================================