LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-20-2010, 04:38 PM   #31
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,771

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477

Okay, I put in some more time on the README to get this ready today(night here). I've uploaded everything here:
http://distro.ibiblio.org/pub/linux/...sysvinit-dash/

@Sasha - Of *course* you'll find 'nifty tricks' in my code -or maybe not... My work is not intended to replace /bin/sh with /bin/dash. Way too much misery in that for me. My 'distro' -I've mentioned that to you before, but I've (once again) abandoned the idea. It's simply more work than I want to take on -I'm seem to be a cold-weather-only coder, so it would be unfair to any potentil users to lead them astray... I did manage to get a rather-complete set of src2pkg scripts made for most of the basic
packages needed for a system -including X and many optional packages. after some cleanup I'll be uploading them to my site(this fall) for any use they may be to others. There's some pretty interesting stuff there, including my glibc build scripts which create a couple of hundred individual locale packages and my scripts for building X using src2pkg for the most tedious parts...
src2pkg taught me that by working on individual programs I could have more 'impact' than by trying to maintain a whole distro.

@ H_TexMex_H - You can find a src2pkg build of dash here:
http://distro.ibiblio.org/pub/linux/....0/dash-5.5.1/
If you (oh so bravely) decide to build my version of the scripts (using src2pkg) and (really, really bravely) install the package, the scripts should work even if you don't have dash or ash installed -but of course with little result. I put a lot of effort into the doinst.sh so that installing the package would work whether (or not) ash or dash are installed. If you want to use dash, you should have it installed first before installing my scripts. The dash executable should be at /bin/dash, not at /usr/bin/dash (/usr may not be mounted until well into the boot scripts)

I've written a really looonnnngg README here:
http://distro.ibiblio.org/pub/linux/...it-dash/README
which gives valuable insight into my approach to this idea. It is a must-read if you plan to use any of my material. It may also give much-less-valuable insight into any number of other things -if you read between the lines! :=) Happy re-booting...
 
1 members found this post helpful.
Old 10-20-2010, 05:59 PM   #32
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
@ gnashley,

your README is very nice - and I already learned a little thing or two from it. I plan to go through it again piece by piece to specifically address or comment on some points you made in there, but ultimately you pretty much covered the situation in good detail so that anyone wondering "what it's all about" now has a very good idea if they read your README.

Thanks again for your interest & work on this, and also for hosting all these files at your location.
 
Old 10-21-2010, 01:08 PM   #33
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,771

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Hmmm, Jeremy said that no posts had been lost, but my reply here from yesterday eveneing and someone else's reply to that are not here.
So, I'll repeat -but more briefly.
I've uploaded my sources and src2pkg build scripts here:
http://distro.ibiblio.org/pub/linux/...sysvinit-dash/

There's a pretty long README here:
http://distro.ibiblio.org/pub/linux/...it-dash/README
 
Old 10-21-2010, 01:08 PM   #34
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,771

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Oh weird, now my posts from yesterday show up here. Opera weirdness(rare).

Last edited by gnashley; 10-21-2010 at 01:14 PM.
 
Old 10-21-2010, 01:58 PM   #35
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Alright thanks, well maybe this weekend, when I'm feeling lucky and brave, I may try them.
 
Old 10-22-2010, 04:55 AM   #36
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,771

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@H_TeXMeX_H - on second thought, I think you'd best *not* try building and installing my scripts on Slackware. My packages follow a different naming convention and the way the files are distributed between the packages (sysvinit and sysvinit-scripts) may not fit with what Slackware is presently doing -you might have to manually overwrite and/or remove files in order to restore your system. A better bet would be to wait and see what Sasha does -hopefully she'll come up with a clean way to be able to install/upgrade/downgrade the scripts without braking anything. At the moment I don't have time to test/rewrite to make sure they would work on Slackware.

@Sasha -It's well worth looking closely at tuvdev's scripts for style/compliance pointers. He's formally studied shell programming and follows pretty strict practices which make very good examples which are not likely to lead you astray.
 
Old 10-22-2010, 12:01 PM   #37
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
UPDATE..

Well, I've re-gone-through all my scripts in /etc/rc.d but I know I have a few more around the system that I'll have to take a fresh look at. Had a period of time yesterday where I couldn't boot past "Starting HALd" (because it wouldn't start because UDEV hadn't been started and so /dev was sparse) but have that sorted now.

You know what's horrible? /sbin/rescan-scsi-bus. It's a printf/echo and variable-typing pain, although gnashley's version works nicely (some tests make me wonder *how* it's working without complaint). I managed to bork that version for a while too (while editing some of it to my own style & taste) but seem to have it working well now. I'm still tempted to toss out a lot of the verbose output away.

I've had a look at some of tuxdev's scripts; the biggest change I've seen so far is in rc.4, and I have yet to take another look at it, but I thought there was some extra code there too (hard to imagine, it's been compacted so nicely).

Tra la la, on with the show!
 
Old 10-22-2010, 12:25 PM   #38
GazL
Senior Member
 
Registered: May 2008
Posts: 3,480

Rep: Reputation: 1016Reputation: 1016Reputation: 1016Reputation: 1016Reputation: 1016Reputation: 1016Reputation: 1016Reputation: 1016
I did something very similar with my rc.4 a while back:
Code:
#! /bin/sh
#
# rc.4          This file is executed by init(8) when the system is being
#               initialized for run level 4 (XDM)
#

echo "Starting X11 Display Manager..."

# Feel free to alter the search order to suit your preference.

for manager in \
    /usr/bin/kdm \
    /usr/bin/xdm \
    /usr/bin/gdm \
    ;
  do
    test -x $manager && exec $manager -nodaemon
  done

# exec means we should never get this far, unless there's no
# binary to run.

echo "rc.4: Cannot find usable Display Manager binary" >&2
Similar approach to Tuxdev's so clearly we were thinking along similar lines, but it doesn't use a variable and that push_back() function for the list of display manager binaries, which makes it a little bit simpler.
 
Old 10-22-2010, 12:49 PM   #39
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
I like your approach the most GazL. Very simple, and super easy to add/remove DM's from; would be ideal as the default rc.4 in Slackware.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] init scripts, variables in INIT INFO section catkin Linux - General 1 08-18-2009 03:02 PM
Please recommend Slack-based & Slack-compatible distros. brjoon1021 Slackware 19 11-04-2007 04:14 PM
[SOLVED] Optimize slack boot process / init scripts ? H_TeXMeX_H Slackware 73 10-12-2007 05:47 AM
Wireless POSIX compatible library thebryster Linux - Laptop and Netbook 0 12-03-2004 01:44 PM
slack init scripts gui10 Slackware 11 05-15-2002 12:12 PM


All times are GMT -5. The time now is 06:37 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration