Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[scripts] /sbin/rc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Whoo
n00b
n00b


Joined: 25 May 2003
Posts: 20

PostPosted: Sat Jan 30, 2010 1:12 pm    Post subject: [scripts] /sbin/rc Reply with quote

Hello,

Si vous pensez que comme moi le framebuffer c'est trop la frime pour l'installer.
Mais que quand même, on pourrait faire un effort ! Voici un petit patch pour /sbin/rc qui permet de démarrer avec "dialog" l'outil en ncurses pour faire des menus utilisateurs-amis.

Code:

*** rc.orig   2010-01-30 16:51:43.000000000 +0400
--- rc   2010-01-30 16:58:49.000000000 +0400
***************
*** 867,877 ****
  }
 
  # Start scripts
  for i in $(get_start_services) ; do
     if service_stopped "${i}" ; then
!       do_interactive start_service "${i}"
     fi
! done
 
  # Wait for any services that may still be running ...
  [[ ${RC_PARALLEL_STARTUP} == "yes" ]] && wait
--- 867,890 ----
  }
 
  # Start scripts
+ #
+ a=($(get_start_services))
+ nb=${#a[*]};
+ a=0
+ let step=110/nb;
  for i in $(get_start_services) ; do
+ cat << EOF
+ XXX
+ $a
+ Demarrage service : \Zb\Z1${i}
+ XXX
+ EOF
     if service_stopped "${i}" ; then
!       do_interactive start_service "${i}" &>/dev/null
     fi
! let a=step+a
! [ $a -gt 100 ] && a=100
! done | dialog --colors --backtitle "Wizz boot" --title "System Booting: ... ${SOFTLEVEL}" --gauge " " 10 75
 
  # Wait for any services that may still be running ...
  [[ ${RC_PARALLEL_STARTUP} == "yes" ]] && wait


++
Dominique


----------------------
http://www.lugm.org
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Wed Feb 03, 2010 8:56 pm    Post subject: Reply with quote

Bah, après, si tu as de la chance avec KMS, tu n'as rien à faire pour avoir une pure résolution de ouf de malade, et ce sans ne rien faire, bref, la belle vie quoi... ( après, il y a peut-être d'autres avantages, mais pour moi avec une résolution autre que du 800x600 c'est suffisant.. )
_________________
The End of the Internet!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum