mirror of
git://slackware.nl/current.git
synced 2024-12-31 10:28:29 +01:00
57f9e5505b
patches/packages/network-scripts-15.0-noarch-19_slack15.0.txz: Rebuilt. This update fixes a bug and adds a new feature: Re-add support for the DHCP_IPADDR parameter from rc.inet1.conf. Expand the help text for DHCP_IPADDR in rc.inet1.conf. Add support for a DHCP_OPTS parameter. Thanks to ljb643 and Darren 'Tadgy' Austin. patches/packages/vim-9.0.1667-x86_64-1_slack15.0.txz: Upgraded. This fixes a rare divide-by-zero bug that could cause vim to crash. In an interactive program such as vim, I can't really see this qualifying as a security issue, but since it was brought up as such on LQ we'll just go along with it this time. :) Thanks to marav for the heads-up. (* Security fix *) patches/packages/vim-gvim-9.0.1667-x86_64-1_slack15.0.txz: Upgraded.
36 lines
999 B
Bash
36 lines
999 B
Bash
#!/bin/sh
|
|
# Handle the incoming configuration files:
|
|
config() {
|
|
NEW="$1"
|
|
OLD="`dirname $NEW`/`basename $NEW .new`"
|
|
# If there's no config file by that name, mv it over:
|
|
if [ ! -r $OLD ]; then
|
|
mv $NEW $OLD
|
|
elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
|
|
rm $NEW
|
|
fi
|
|
# Otherwise, we leave the .new copy for the admin to consider...
|
|
}
|
|
config etc/rc.d/rc.inet1.new
|
|
config etc/rc.d/rc.inet1.conf.new
|
|
config etc/rc.d/rc.inet2.new
|
|
config etc/rc.d/rc.ip_forward.new
|
|
config etc/hosts.new
|
|
config etc/hosts.deny.new
|
|
config etc/hosts.equiv.new
|
|
config etc/networks.new
|
|
config etc/nntpserver.new
|
|
config etc/resolv.conf.new
|
|
config etc/HOSTNAME.new
|
|
config etc/host.conf.new
|
|
config etc/hosts.allow.new
|
|
config etc/protocols.new
|
|
|
|
# OK, some of these aren't useful as examples, and have to be
|
|
# considered clutter if you've already got the file.
|
|
# So out they go.
|
|
rm -f etc/HOSTNAME.new
|
|
rm -f etc/hosts.new
|
|
rm -f etc/resolv.conf.new
|
|
rm -f etc/nntpserver.new
|
|
|