mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
core38 update: add cryptodev to /etc/sysconfig/modules.
change service stop and startorder at update.
This commit is contained in:
@@ -80,6 +80,9 @@ rm -rf /usr/libexec/ipsec
|
|||||||
#
|
#
|
||||||
cp -vf /boot/grub/grub.conf /boot/grub/grub.conf.org
|
cp -vf /boot/grub/grub.conf /boot/grub/grub.conf.org
|
||||||
#
|
#
|
||||||
|
# Stop sysklogd
|
||||||
|
/etc/init.d/sysklogd stop
|
||||||
|
#
|
||||||
# Unpack the updated files
|
# Unpack the updated files
|
||||||
#
|
#
|
||||||
echo
|
echo
|
||||||
@@ -88,6 +91,10 @@ echo Unpack the updated files ...
|
|||||||
tar xvf /opt/pakfire/tmp/files --preserve --numeric-owner -C / \
|
tar xvf /opt/pakfire/tmp/files --preserve --numeric-owner -C / \
|
||||||
--no-overwrite-dir
|
--no-overwrite-dir
|
||||||
#
|
#
|
||||||
|
# Start Sevices
|
||||||
|
/etc/init.d/sysklogd start
|
||||||
|
/etc/init.d/squid start
|
||||||
|
#
|
||||||
# Modify grub.conf
|
# Modify grub.conf
|
||||||
#
|
#
|
||||||
echo
|
echo
|
||||||
@@ -137,10 +144,6 @@ grub-install --no-floppy ${ROOT::`expr length $ROOT`-1} --recheck
|
|||||||
#
|
#
|
||||||
perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
|
perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
|
||||||
#
|
#
|
||||||
# Delete old lm-sensor modullist...
|
|
||||||
#
|
|
||||||
rm -rf /etc/sysconfig/lm_sensors
|
|
||||||
#
|
|
||||||
# Cleanup Collectd statistics...
|
# Cleanup Collectd statistics...
|
||||||
#
|
#
|
||||||
PRECLEAN=`du -sh /var/log/rrd/collectd`
|
PRECLEAN=`du -sh /var/log/rrd/collectd`
|
||||||
@@ -161,6 +164,13 @@ POSTCLEAN=`du -sh /var/log/rrd/collectd`
|
|||||||
#
|
#
|
||||||
echo Cleaned up collectd directory from $PRECLEAN to $POSTCLEAN size.
|
echo Cleaned up collectd directory from $PRECLEAN to $POSTCLEAN size.
|
||||||
#
|
#
|
||||||
|
# Start collectd
|
||||||
|
/etc/init.d/collectd start
|
||||||
|
#
|
||||||
|
# Delete old lm-sensor modullist to force search at next boot
|
||||||
|
#
|
||||||
|
rm -rf /etc/sysconfig/lm_sensors
|
||||||
|
#
|
||||||
# USB Modeswitch conf now called setup, rename ...
|
# USB Modeswitch conf now called setup, rename ...
|
||||||
#
|
#
|
||||||
if [ -e /etc/usb_modeswitch.conf ]; then
|
if [ -e /etc/usb_modeswitch.conf ]; then
|
||||||
@@ -192,10 +202,18 @@ sed -i "s|^config setup$|&\n\tcharonstart=no|g" /var/ipfire/vpn/ipsec.conf
|
|||||||
chown nobody:nobody /var/ipfire/vpn/ipsec.conf
|
chown nobody:nobody /var/ipfire/vpn/ipsec.conf
|
||||||
chmod 644 /var/ipfire/vpn/ipsec.conf
|
chmod 644 /var/ipfire/vpn/ipsec.conf
|
||||||
#
|
#
|
||||||
#
|
# Add cryptodev to /etc/sysconfig/modules
|
||||||
# Start Sevices
|
mv /etc/sysconfig/modules /etc/sysconfig/modules.org
|
||||||
#
|
cat /etc/sysconfig/modules.org | \
|
||||||
/etc/init.d/squid start
|
grep -v "cryptodev" | \
|
||||||
|
grep -v "# End /etc/sysconfig/modules" > /etc/sysconfig/modules
|
||||||
|
echo "" >> /etc/sysconfig/modules
|
||||||
|
echo "### cryptodev" >> /etc/sysconfig/modules
|
||||||
|
echo "#" >> /etc/sysconfig/modules
|
||||||
|
echo "cryptodev" >> /etc/sysconfig/modules
|
||||||
|
echo "" >> /etc/sysconfig/modules
|
||||||
|
echo "# End /etc/sysconfig/modules" >> /etc/sysconfig/modules
|
||||||
|
chmod 644 /etc/sysconfig/modules
|
||||||
#
|
#
|
||||||
# This core-update need a reboot
|
# This core-update need a reboot
|
||||||
/usr/bin/logger -p syslog.emerg -t core-upgrade-38 "Upgrade finished. If you use a customized grub.cfg"
|
/usr/bin/logger -p syslog.emerg -t core-upgrade-38 "Upgrade finished. If you use a customized grub.cfg"
|
||||||
|
|||||||
Reference in New Issue
Block a user