参考:
http://blog.sina.com.cn/s/blog_702c2db50100pkcv.html
http://www.cnblogs.com/youxia/p/linux030.html
1.首先生成xml文件,shell脚本放在壁纸文件夹内:
#!/bin/sh
#xml文件名
xmlname="background-new.xml"
#壁纸目录
dir="/home/stm/图片/wallPaper/"
#持续时间
conTime=1795
#切换时间
chaTime=5
if [ ! -d $dir ];then
echo "error: $dir is not a dir!\b"
exit 0
fi
xmlname=${dir}${xmlname}
if [ -f $xmlname ];then
rm $xmlname
if [ ! $? -eq 0 ]; then
echo "error: $xmlname cant romove!\n"
exit 0
fi
fi
echo "\
<background>\n\
<starttime>\n\
<year>2009</year>\n\
<month>08</month>\n\
<day>04</day>\n\
<hour>00</hour>\n\
<minute>00</minute>\n


458

被折叠的 条评论
为什么被折叠?



