View Single Post
Old 12-12-2008, 02:36 AM   #7
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
Ah...
I have another idea.
put xepdmgr and mybootscript.sh in /home/root. And use the following code in .start.sh:
Code:
if [ -f /home/root/mybootscript.sh ]; then
  chmod 777 /home/root/mybootscript.sh
  chmod 777 /home/root/xepdmgr
  . /home/root/mybootscript.sh
  mv /home/root/mybootscript.sh /home/root/_mybootscript.sh
else
  /usr/bin/displayMgr -p &
fi
Thus, it will be back to displayMgr in the next boot. Create a action in contentlister to execute "mv /home/root/_mybootscript.sh /home/root/mybootscript.sh" will reactivate xepdmgr in the next boot.
If xepdmgr failed, there still a chance it will back to normal in the next boot.

Last edited by ericshliao; 12-12-2008 at 02:45 AM.
ericshliao is offline   Reply With Quote