[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem mit dhcp



* Michael Klank <Michael.Klank@tiscali.de>, 2004-04-21 09:38 +0200:
> Danke für den Tipp, hab ich gleich umgesetzt und das Packet auf hold
> gesetzt. Wußte bis jetzt gar nicht das das geht.

Ich benutze schon seit immer dies, original IIRC von Ethan Benson:

----------------------------------------------
#!/bin/sh
# hold Debian packages
#/usr/local/sbin/dhold

PRG=`basename $0`

if [ `id -u` != 0 ] ; then
    echo "you're not root, go away."
    exit 1
elif [ $# != 1 ] ; then
    echo "Usage: $PRG <packagename>"
    exit 1
else
    echo $1 hold | dpkg --set-selections
fi
----------------------------------------------
#!/bin/sh
# unhold Debian package
# /usr/local/sbin/dhold

PRG=`basename $0`

if [ `id -u` != 0 ] ; then
    echo "you're not root, go away."
    exit 1
elif [ $# != 1 ] ; then
    echo "Usage: $PRG <packagename>"
    exit 1
else
    echo $1 install | dpkg --set-selections
fi
----------------------------------------------

-Andre

Attachment: pgp7fomfgzYud.pgp
Description: PGP signature


Reply to: