Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Self destructing wrappers, okay  to use???< Next Oldest | Next Newest >
nucpc Offline





Group: Members
Posts: 89
Joined: Dec. 2003
Posted: Aug. 14 2004,14:20 QUOTE

Can I ask for some opinions on this please;

I don't know if other people are already using things like this but I've just been
checking it works, which it does. Basically I have a program called 'name'
which I move to 'name2' and then add this wrapper called 'name' (using
'xv' as an example) ; file 'xv2' is the program, file 'xv' is this script;

#!/bin/sh
##Run some commands.....
##(could be a "sudo ldconfig" for example)
rm /home/dsl/xvsource
##Self destruct this script by simply overwriting
##it with a link to the executable....
sudo ln -sf /usr/X11R6/bin/xv2 /usr/X11R6/bin/xv
##perform requested program.....
xv $1

Like I say I don't know if this is already commonly used BUT are people
happy for them to appear in .dsl's (and I warn users/Ke4nt of their
presence) ????

All the best.
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Aug. 14 2004,16:07 QUOTE

You asked for opinions and so being one not to shy away from expressing mine:

I designed the myDSL system to be only a subset of the standard installaion files from an existing deb or tgz.  That way it can be easily created with the tar command. I wanted a system that would be easy for users to create, easy as possible on system resources, and to try to insure system integrity.

The idea of install scripts has been brought up and I worry with command like rm being in them. Or having to carefully look inside each extension for possible code that could harm a system.

I know we have setup the testing area. I know we put in bold red the warning of possible danger to hard drive users. And we even setup the color code system.  

Typical wrappers do not have rm or self destruct in them. They usually setup some paths and exports and then call for the execution of the program.

I think it is very amazing the amount and quaility of contributions based on the simple original idea of them being a simple collection from the original standard installion files.
Back to top
Profile PM WEB 
nucpc Offline





Group: Members
Posts: 89
Joined: Dec. 2003
Posted: Aug. 14 2004,16:51 QUOTE

Hi Robert,
          Yep I think I agree. There's something very unsettling about the way that script
looks. That's why I asked for opinions. I of course stick to original files with their
original headers/information in all dsl constructions (and wouldn't submit anything
that intentionally wasn't). I will not release any scripted material.
           
            All the best.
Back to top
Profile PM 
2 replies since Aug. 14 2004,14:20 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Self destructing wrappers

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code