New /etc/services?

Auke Kok sofar at lunar-linux.org
Thu May 6 10:17:45 GMT 2004


Jerry Lundström wrote:
[snip]

Here's what lunar uses internally, should not be that hard to write into 
a module's BUILD... note that on first installation it would add almost 
the entire file as no entries match at all with the ISO's services.

sofar

install_services ()
{
    debug_msg "install_services ($@)";
    if [ -f $SCRIPT_DIRECTORY/services ]; then
        export IFS="$ENTER_IFS";
        cat $SCRIPT_DIRECTORY/services | while read LINE; do
            grep -q "$LINE" /etc/services || echo "$LINE" >>/etc/services;
        done;
    fi
}





More information about the Lunar-dev mailing list