In slack 13; what package installs /etc/rc.d/rc.4 script?
I'm trying to figure out how to configure my customized Slim DM
to overwrite the installed /etc/rc.d/rc.4 script with the one I put in my slim build from source However, it just installs it as rc.4.new and not rc.4 why? would it be easier to instead configure the rc.4 that initially gets installed? if so, what slack pkg has the /etc/rc.d/* folder?? I'm doing this with Absolute 13.0.8 install cd as its installed size is too big for my lappy hdd and it comes with both gdm and xdm and I want slim. So, I removed many many pkgs from install iso, got it down to 370MB and only problem is after install my rc.4 is in /etc/rc.d but its named rc.4.new and there is also the original rc.4 thats my only issue How do i do this? |
To elaborate more, heres the custom rc.4 I need to have installed when i install from my iso
Code:
#! /bin/sh |
http://www.slackwiki.org/Doinst.sh
you can see lot of examples how to include customized doinst.sh in slackware sources :) at, for example, has this line near the end of the slackbuild, just before makepkg Code:
zcat $CWD/doinst.sh > $PKG/install/doinst.sh you can find the build files here. |
OK
mmm I'm confused as there isnt a Doinst.sh in slim source? I'm not a script bash expert so please explaing? |
I got a SLKBUILD and a build-slim.sh with the source I got from salixos
|
Code:
mv /etc/rc.d/rc.4.new /etc/rc.d/rc.4 |
heres the pkg, please note I have modified it considerably from that one
http://salix.enialis.net/i486/13.0/source/xap/slim/ |
Ha
hey Gapan, where do i put that command? |
Heres the modified makefile in source
I removed all the themes, added my icelite theme and highlighted the rc.4 command Code:
# Makefile for slim - generic Linux |
first time I see a salix buildscript, but reading it I suppose after
Code:
for i in ${dotnew[@]}; do Code:
echo "mv /etc/rc.d/rc.4.new /etc/rc.d/rc.4" >> $startdir/pkg/install/doinst.sh |
The end result of ./build-slim.sh
Code:
Creating Slackware package: /root/Desktop/SLIM/nubuild/slim-1.3.1-i486-1gv.txz |
Heres the modified SLKBUILD
what do I change? Code:
#Maintainer: George Vlahavas <vlahavas~at~gmail~dot~com> |
EDIT: sorry just read it well
|
this is my only snag, i got the install down fron 3.6+ gb to 1.9 gb but at runlevel 4 it hits the orig rc.4 and stops cause the slim part aint in rc.4....
|
you can try putting it just before the end bracket on the last line of your buildscript.
|
put what?
mv etc,etc? or put what before the end bracket? |
this line
Code:
echo "mv /etc/rc.d/rc.4.new /etc/rc.d/rc.4" >> $startdir/pkg/install/doinst.sh |
there is no doinst.sh....
I have to make one? and pput it where? |
that line creates the file for you.
it says: write on screen the string "mv /etc/rc.d/rc.4.new /etc/rc.d/rc.4" and redirect the output in append mode (the ">>") to the file $startdir/pkg/install/doinst.sh |
here new ouput of ./build-slim.sh
Code:
Creating Slackware package: /root/Desktop/SLIM/nubuild/slim-1.3.1-i486-1gv.txz |
you gotta tell us, we're curious. ;)
|
Quote:
|
that is too easy LOL
|
gotta tell us what ponce?
Gapan, its impossible to do it in a bash prompt this is an install cd, at initial boot after installing it's gonna hit runlevel 4 and cink out as my rc.4 is being named rc.4.new and not overwriting the original... any, ponce adding echo "mv /etc/rc.d/rc.4.new /etc/rc.d/rc.4" >> $startdir/pkg/install/doinst.sh didnt work....I just did the install from iso on hdd again with new slim.txz and it still makes a rc.4.new:( |
strange.
just a suggestion: maybe is better to ask about it on salix forums... |
I wanna get this little iso uploaded today, and hope to overcome this seemingly small issue...
I replaced GDM on all my installs across 3 PC's and like 15 partitions with just Slim SalixOS on 2 pcs now has slim vs gdm got rid of gdm/xdm in my absolute installs too I even run all my buntu's and debians with slim now:) |
What package in slack holds the original rc.4 script?
is it in the initrd? no... what package installs rc.d? |
Quote:
Code:
#Maintainer: George Vlahavas <vlahavas~at~gmail~dot~com> Just install that, edit your SLKBUILD file and run slkbuild -X in the same directory. |
OK
wait... I'm building the package from salix source for slim in SalixOS Gapan so slkbuild is installed that little command above will do what Gapan? |
That will build your package, using the SLKBUILD file present in the same directory. man slkbuild for more.
|
oh I see....ok Ill try another absolute-lite install
sda8 your gettin it again:) |
NO
again when it builds it the output is saying slim.conf.new and rc.4.new so its not working or what? |
Can you please show me the SLKBUILD file you're using?
|
OK
heres the slkbuild I just edited as you and ponce said and it failed Code:
#Maintainer: George Vlahavas <vlahavas~at~gmail~dot~com> |
Heres where the build failed
Code:
test -e /root/Desktop/SLIM/nubuild/pkg/etc/slim.conf || \ |
I repeat, I don't know salix buildscript, but I think you don't need my line there with
Code:
options=('noautodotnew') Code:
cp: cannot stat `/root/Desktop/SLIM/nubuild/src/icelite': No such file or directory |
I'm giving up on this one I think
now the build-slim.sh, which was working, now also quits both the SLKBUILD and build-slim.sh "create a src and pkg folder, not me all my stuff is in slim-1.3.1 folder which i make into tar.gz and then run build.sh whatever... shit I just waan replace the damn rc.4 thats it! |
Well, of course it fails. Do you notice an mv line in my SLKBUILD? You also have to provide sources in the source line, which you stripped for no reason. Use something like this:
Code:
#Maintainer: George Vlahavas <vlahavas~at~gmail~dot~com> |
OK
I'm about as good with bash,whatver as I am with html, so... I'm gettin more confused by the moment Anyway I could just give you my source Gapan and you do it?? |
I could, but how would you learn anything like that? ;) If you read my previous post carefully, I'm sure you'll find the way to do it eventually.
And another way to accomplish what you want, which is also a lot cleaner, is leave the slim package with no rc.4 script at all, and rebuild the sysvinit-scripts package with your edited rc.4. Here's the source from slackware: ftp://ftp.ntua.gr/pub/linux/slackwar...vinit-scripts/ |
Damnit
running the SLKBUILD overwrites the build-slim.sh does it? there went 3 hours of work... |
Quote:
Code:
man slkbuild |
Gapan I have been asking what pkg holds rc.d,
Thank you as all I need to cxhange is the stupid rc.4 script I'll try it though with my build-slim.sh now vaporized/changed I'm back at square1 maybe I'll try later |
OK
so, now how do I build that sysvinit stuff? ./configure,etc or what? LOL I just tried ./sysvinit-scripts.SlackBuild and of course it failed Code:
root[SYS]# ls |
You need to get everything from that source directory, including the scripts directory with every file in it.
|
I did, but I put it all in one folder
I have to recreate it as it is on website? |
Of course you have! Anyway, you can safely use the sysvinit-scripts package from salix: http://download.salixos.org/i486/13....oarch-15gv.txz
it already has support for slim. |
your a funny guy Gapan
Thank you, brother it built successfully this time I'm gonna use the salix sysvinit.. |
Quote:
> > sysvinit-functions-8.53-i486-2 sysvinit-scripts-1.2-noarch-30 ..... |
They told me I had to go back to rehab...I said NO! NO! NO!
LOL It worked! Absolute-Lite is born! Thanks Ponce, Gapan, Knudfl and everybody! I gotta now edit the package list for what i removed or is there a way to automate that? iso is 379MB installed size is 2.0GB I can get it down farther too I know:) |
All times are GMT -5. The time now is 12:03 AM. |