Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[PROBLEM] Dual boot with runlevels on Xbian
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Problem: Dual boot with runlevels on Xbian
24th Sep, 2013, 01:32 AM
Post: #1
Unicron Offline
Registered
Posts: 2
Joined: Sep 2013
Reputation: 0
Dual boot with runlevels on Xbian
Hi,

I'm trying to update/follow this guide:

http://www.raspberrypi.org/phpBB3/viewtopic.php?t=23051

To summarise, what the user does there is adjust Raspbian so that XBMC only starts on runlevel 2. Then he has a script to switch the default runlevel to 5 before rebooting. In runlevel 5, lxfe is supposed to start. This last bit is what doesn't work at the moment.

I can execute the runlevel changing script via SSH, works fine. I reboot and I'm in runlevel 5. But, X never starts. It just stays on the Xbian boot screen.

If I run startx manually after quitting XBMC, that works fine.

So my guess is that there's something wrong in the script I've included below.

Any help would be greatly appreciated Smile

Code:
#!/bin/bash

### BEGIN INIT INFO
# Provides:          startx
# Required-Start:    $all
# Required-Stop:
# Default-Start:     5
# Default-Stop:      0 1 2 3 4 6
# Short-Description: startx through init, on runlevel - changing runlevel back to 2
# Description:
#
### END INIT INFO

case "$1" in
  start)
   sed -ri 's/'DEFAULT_RUNLEVEL=5'/'DEFAULT_RUNLEVEL=2'/' /etc/init/rc-sysinit.conf
   startx
   ;;
  stop)
        stopx
   ;;
  status)

esac

exit
#EOF
Find all posts by this user
Quote this message in a reply
30th Sep, 2013, 10:21 AM
Post: #2
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Dual boot with runlevels on Xbian
XBian boot screen you mean Splash? the XBian boot graphics with progress bar?

Stop it before starting startx. It is possibly colliding with X.

In the script you provided place "splash --exit" just before "startx". Also, init scripts are run with -e option what cause scripts to stop at line - command returning non zero exit status. Put "set +e" right before "case $1".

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
2nd Oct, 2013, 03:09 AM
Post: #3
Unicron Offline
Registered
Posts: 2
Joined: Sep 2013
Reputation: 0
RE: Dual boot with runlevels on Xbian
(30th Sep, 2013 10:21 AM)mk01 Wrote:  XBian boot screen you mean Splash? the XBian boot graphics with progress bar?

Stop it before starting startx. It is possibly colliding with X.

In the script you provided place "splash --exit" just before "startx". Also, init scripts are run with -e option what cause scripts to stop at line - command returning non zero exit status. Put "set +e" right before "case $1".

That's exactly what I meant, the splash screen. Thanks so much for this, will report back and provide links to the scripts I've used once finished Smile
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 9th May, 2025, 11:52 PM Powered By MyBB, © 2002-2025 MyBB Group.