Magellan Linux

Diff of /trunk/busybox/splash-functions.rc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1751 by niro, Wed Apr 25 08:57:23 2012 UTC revision 1838 by niro, Fri Jul 13 09:54:26 2012 UTC
# Line 71  rc_init() Line 71  rc_init()
71   then   then
72   local resolution="$(splash_resolution)"   local resolution="$(splash_resolution)"
73    
  splash_cursor disable  
74   chvt ${SPLASH_TTY}   chvt ${SPLASH_TTY}
75   sleep 0.5   sleep 0.5
76    
# Line 118  rc_exit() Line 117  rc_exit()
117   if [[ ${SPLASH_MODE} = silent ]]   if [[ ${SPLASH_MODE} = silent ]]
118   then   then
119   splash_control "exit"   splash_control "exit"
  splash_cursor enable  
120   if [[ -n ${SPLASH_X11_TTY} ]]   if [[ -n ${SPLASH_X11_TTY} ]]
121   then   then
122   chvt ${SPLASH_X11_TTY}   chvt ${SPLASH_X11_TTY}
# Line 150  splash_control() Line 148  splash_control()
148   echo "$@" > ${SPLASH_FIFO}   echo "$@" > ${SPLASH_FIFO}
149   fi   fi
150  }  }
   
 # disable|enable  
 splash_cursor()  
 {  
  case $1 in  
  enable) echo -e "\e[?0c";;  
  disable) echo -e "\e[?1c" ;;  
  esac  
 }  

Legend:
Removed from v.1751  
changed lines
  Added in v.1838