Tiny Core Linux
		Tiny Core Base => TCB Talk => Topic started by: gerald_clark on August 19, 2010, 11:26:44 AM
		
			
			- 
				tc-config runs bootlocal.sh detached.
 This has lead to some confusion for people adding items to bootlocal.sh.
 
 My suggestion is that tc-config instead run bootsync.sh in the forground.
 The distributed bootsync.sh simply runs "bootlocal.sh &'.
 This would allow users to add routines that must complete before login to bootsync.sh either before or after the
 launching of bootlocal.sh.
 
 Bootlocal.sh runs exactly as it has in the past.
- 
				Are there scenarios that would require this?
			
- 
				I guess this thread (http://forum.tinycorelinux.net/index.php?topic=7023) could be seen as an example why the suggestion makes sense (at least to myself).
 
 Whilst there are probably ways around it in most cases I'd like to support the proposal. I see it as beneficial to have the ability to for the user to create (system-wide) syncronous and asyncronous startup events.
- 
				Any sync events can be put in .profile, .xsession?
 Or root's .profile, launched only once.
- 
				Hmm, in my view there is a difference between the original proposal and using an amemdment to any of the .profile or .xsession files: It is quite reasonable to assume that a user starts the X-server more than once, or (especially with 'multivt' now an option) a user does login more than once. In this case the events would get executed again, which might not be the intension of the user.
 
 The way I understand it '/opt/bootsync.sh' and '/opt/bootlocal.sh' would be only run as part of the boot process. Which is different from the other options mentioned above.
- 
				Good discussion. OK. I will implement in next 3.1rc.