From: "Richard Fish" <bigfish@asmallpond.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Is it possible to protect *INDIVIDUAL FILES* against etc-update?
Date: Mon, 16 Oct 2006 17:47:35 -0700 [thread overview]
Message-ID: <7573e9640610161747n32eb18dem6496ae7f51d3db@mail.gmail.com> (raw)
In-Reply-To: <20061016215757.GA14528@waltdnes.org>
On 10/16/06, Walter Dnes <waltdnes@waltdnes.org> wrote:
> long will it take me to realize what's happened? What I'm asking for is
> a way to pre-emptively tell etc-update not to bother me about certain
> files. Zap the new version and keep the old.
cat > my_etcupdate.sh <<EOF
#!/bin/bash
EXCLUDE_FILES="/etc/conf.d/local.start
/etc/conf.d/local.stop
/etc/rc.conf
"
for f in $EXCLUDE_FILES; do
dn=`dirname $f`
bn=`basename $f`
rm -i "${dn}/._cfg[0-9][0-9][0-9][0-9]_${bn}"
done
etc-update
EOF
Then just add whatever files are bothing you to EXCLUDE_FILES, and run
my_etcupdate.sh instead of etc-update.
Or as Bo suggested, create scripts on a per-package basis in
/etc/portage/env/cat-egory/package to remove the new configs after the
packages are merged.
-Richard
--
gentoo-user@gentoo.org mailing list
next prev parent reply other threads:[~2006-10-17 0:52 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-11 16:00 [gentoo-user] where to put mknod & chmod maxim wexler
2006-10-11 16:24 ` Alan McKinnon
2006-10-12 14:44 ` maxim wexler
2006-10-12 17:10 ` Alan McKinnon
2006-10-13 15:22 ` maxim wexler
2006-10-13 15:33 ` Neil Bothwick
2006-10-15 4:40 ` [gentoo-user] Is it possible to protect *INDIVIDUAL FILES* against etc-update? Walter Dnes
2006-10-15 7:06 ` Bo Ørsted Andresen
2006-10-16 21:57 ` Walter Dnes
2006-10-17 0:47 ` Richard Fish [this message]
2006-10-18 4:09 ` Walter Dnes
2006-10-17 13:11 ` Neil Bothwick
2006-10-15 12:27 ` Neil Bothwick
2006-10-17 13:16 ` Bo Ørsted Andresen
2006-10-17 14:28 ` Neil Bothwick
2006-10-13 23:51 ` [gentoo-user] where to put mknod & chmod Drew
2006-10-11 18:09 ` Neil Bothwick
2006-10-11 21:31 ` [gentoo-user] where to put mknod & chmo Richard Fish
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7573e9640610161747n32eb18dem6496ae7f51d3db@mail.gmail.com \
--to=bigfish@asmallpond.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox