Addons

From: Jochen Cichon (jc@vizzavi.de)
Date: Mon Nov 19 2001 - 10:04:55 CET


Heya,

I have some things to say.

First (!)
=========
A NEW Addon :))
A soundserver addon
(liveice, icecast, shout, streamripper, encoder)
(I think also mp3 should move here :)) )

Second (!)
==========
We talked about some changing on the Addon stuff some threads before.
So the main idea is still to use the first few kBytes of the disk.

So some minor (!) changes have to be done on the setup script.

How it works (should)...

The startup is cut into three pieces...

1)
        Normal startup (swap, usr...)
2)
        Loading Addons: are there anny inside the addon file below setup
        if yes ask about them first (or find them on the HD)
        if not ok its a disk installation... ask about some
        while (some more addons?) {
                load addon...
        }
3)
        Normal config files.

The functions load addon...
get the first k of the disk (what about 5k!), and store them in a temp
file
        /tmp/addon.fun
This first 5k are the normal ADDON.fun script with only a minor change,
there has to be a function like MAIN. Some default function to start.
But all other functions are still there. Like a normal ADDON.fun Script.
(but only for that disk!)

So that addon script shows the description and asks ('You wanna
install?')
If yes, the normal install routine can start (offset 5kByte!).
MOVE the addon.fun script from /tmp to the addon directory
(/usr/wks/addon.fun or similar /usr/wks/setup/ADDON.fun)
After the loading the prolog script has to start (similar to now).
And has to do some things.

        Is the ADDON name inside the addon file below setup?

        YES:
                Whow cool nothing to do here
        NO:
                1) put the addon bin path to path.conf and source it!
                2) put the lib path into ld.conf, and do ldconfig
                3) put the ADDON name to the addon file below setup
                   (think /setup/model or so)
                4) put all fun scripts to the file below setup
                   (custom, minimize, shutdown) and/or create some new...

        every time:
        -) link all needed etc files...

Inside the shutdown and custom script the lines has to change.
Like this:
---- custom ----
swap
keyboard
/usr/wks/setup/server.fun
----------------

That means: swap and keyboard are default fun scripts (look there)
and the server.fun is below wks :))
Cool ha?

So if you have done some setup stuff and want to save.

Just backup the cnf files (!), the shutdown, addon, custom files ... and
maybe some other etc files (look at the main ADDON.FUN script :) old
functionality).
Ready to go... I haven't tried that (less time) but will try on
weekend... if i found some minutes :))

See ya
        Jochen

---------------------------------------------------------------------
To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.dk
For additional commands, e-mail: mulinux-help@sunsite.dk



This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:20 CET