Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/daemon/client/include/system.client.class

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

revision 1344 by niro, Thu Feb 17 20:18:46 2011 UTC revision 1345 by niro, Thu Feb 17 21:16:24 2011 UTC
# Line 162  get_system_autologon() Line 162  get_system_autologon()
162    
163  set_system_autologon()  set_system_autologon()
164  {  {
165   local action   local action="$1"
166   [[ -z ${action} ]] && help_system_autologon && return 1   [[ -z ${action} ]] && help_system_autologon && return 1
167    
168   ## splash X11 tty too?   ## splash X11 tty too?
169    
170   case "${action}" in   case "${action}" in
171   enable)   enable)
172   sed 's:^auto_login.*:\1\tyes' /etc/slim.conf   sed -i 's:^\(auto_login\).*:\1\tyes:' /etc/slim.conf
173   mecho "autologon enabled"   mecho "autologon enabled"
174   ;;   ;;
175   disable)   disable)
176   sed 's:^auto_login.*:\1\tno' /etc/slim.conf   sed -i 's:^\(auto_login\).*:\1\tno:' /etc/slim.conf
177   mecho "autologon disabled"   mecho "autologon disabled"
178   ;;   ;;
179   *) help_system_autologon && return 1 ;;   *) help_system_autologon && return 1 ;;

Legend:
Removed from v.1344  
changed lines
  Added in v.1345