mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
Work on update.sh, move core15 to updater
fix collectd rootfiles removed collectd files from oldcore lists
This commit is contained in:
@@ -1 +1 @@
|
|||||||
14
|
15
|
||||||
|
|||||||
@@ -86,8 +86,8 @@ usr/lib/collectd/vmem.so
|
|||||||
#usr/lib/perl5/site_perl/5.8.8/Collectd/Unixsock.pm
|
#usr/lib/perl5/site_perl/5.8.8/Collectd/Unixsock.pm
|
||||||
#usr/lib/perl5/site_perl/5.8.8/i586-linux/auto/Collectd
|
#usr/lib/perl5/site_perl/5.8.8/i586-linux/auto/Collectd
|
||||||
#usr/lib/perl5/site_perl/5.8.8/i586-linux/auto/Collectd/.packlist
|
#usr/lib/perl5/site_perl/5.8.8/i586-linux/auto/Collectd/.packlist
|
||||||
#usr/sbin/collectd
|
usr/sbin/collectd
|
||||||
#usr/sbin/collectdmon
|
usr/sbin/collectdmon
|
||||||
#usr/share/man/man1/collectd-nagios.1
|
#usr/share/man/man1/collectd-nagios.1
|
||||||
#usr/share/man/man1/collectd.1
|
#usr/share/man/man1/collectd.1
|
||||||
#usr/share/man/man1/collectdmon.1
|
#usr/share/man/man1/collectdmon.1
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
etc/collectd.conf
|
|
||||||
etc/rc.d/init.d/collectd
|
|
||||||
usr/local/bin/wirelessctrl
|
usr/local/bin/wirelessctrl
|
||||||
srv/web/ipfire/cgi-bin/optionsfw.cgi
|
srv/web/ipfire/cgi-bin/optionsfw.cgi
|
||||||
srv/web/ipfire/cgi-bin/gui.cgi
|
srv/web/ipfire/cgi-bin/gui.cgi
|
||||||
|
|||||||
@@ -1,8 +1,3 @@
|
|||||||
etc/collectd.conf
|
|
||||||
etc/rc.d/init.d/collectd
|
|
||||||
etc/rc.d/rc0.d/K50collectd
|
|
||||||
etc/rc.d/rc3.d/S20collectd
|
|
||||||
etc/rc.d/rc6.d/K50collectd
|
|
||||||
etc/rc.d/rc3.d/S19smartenabler
|
etc/rc.d/rc3.d/S19smartenabler
|
||||||
etc/rc.d/init.d/smartenabler
|
etc/rc.d/init.d/smartenabler
|
||||||
etc/rc.d/init.d/networking/red
|
etc/rc.d/init.d/networking/red
|
||||||
@@ -11,10 +6,8 @@ srv/web/ipfire/cgi-bin/hardwaregraphs.cgi
|
|||||||
srv/web/ipfire/cgi-bin/network.cgi
|
srv/web/ipfire/cgi-bin/network.cgi
|
||||||
srv/web/ipfire/cgi-bin/optionsfw.cgi
|
srv/web/ipfire/cgi-bin/optionsfw.cgi
|
||||||
srv/web/ipfire/cgi-bin/proxy.cgi
|
srv/web/ipfire/cgi-bin/proxy.cgi
|
||||||
usr/lib/collectd
|
|
||||||
usr/local/bin/makegraphs
|
usr/local/bin/makegraphs
|
||||||
usr/local/bin/wirelessctrl
|
usr/local/bin/wirelessctrl
|
||||||
usr/sbin/collectd
|
|
||||||
var/ipfire/graphs.pl
|
var/ipfire/graphs.pl
|
||||||
var/ipfire/menu.d/20-status.menu
|
var/ipfire/menu.d/20-status.menu
|
||||||
var/ipfire/langs
|
var/ipfire/langs
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
sbin/hdparm
|
sbin/hdparm
|
||||||
usr/lib/collectd
|
|
||||||
usr/sbin/collectd
|
|
||||||
usr/sbin/collectdmon
|
|
||||||
etc/rc.d/init.d/networking/red
|
etc/rc.d/init.d/networking/red
|
||||||
etc/squid
|
etc/squid
|
||||||
sbin/capiinit
|
sbin/capiinit
|
||||||
|
|||||||
0
config/rootfiles/core/16/files
Normal file
0
config/rootfiles/core/16/files
Normal file
@@ -86,8 +86,8 @@ usr/lib/collectd/vmem.so
|
|||||||
#usr/lib/perl5/site_perl/5.8.8/Collectd/Unixsock.pm
|
#usr/lib/perl5/site_perl/5.8.8/Collectd/Unixsock.pm
|
||||||
#usr/lib/perl5/site_perl/5.8.8/i586-linux/auto/Collectd
|
#usr/lib/perl5/site_perl/5.8.8/i586-linux/auto/Collectd
|
||||||
#usr/lib/perl5/site_perl/5.8.8/i586-linux/auto/Collectd/.packlist
|
#usr/lib/perl5/site_perl/5.8.8/i586-linux/auto/Collectd/.packlist
|
||||||
#usr/sbin/collectd
|
usr/sbin/collectd
|
||||||
#usr/sbin/collectdmon
|
usr/sbin/collectdmon
|
||||||
#usr/share/man/man1/collectd-nagios.1
|
#usr/share/man/man1/collectd-nagios.1
|
||||||
#usr/share/man/man1/collectd.1
|
#usr/share/man/man1/collectd.1
|
||||||
#usr/share/man/man1/collectdmon.1
|
#usr/share/man/man1/collectdmon.1
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
opt/pakfire/db/core/mine
|
||||||
etc/init.d/mISDN
|
etc/init.d/mISDN
|
||||||
etc/modprobe.d/blacklist
|
etc/modprobe.d/blacklist
|
||||||
usr/bin/bc
|
usr/bin/bc
|
||||||
@@ -33,24 +33,25 @@ echo $MOUNT > /dev/null
|
|||||||
MOUNT=$_
|
MOUNT=$_
|
||||||
INSTALLEDVERSION=`grep "version = " /opt/pakfire/etc/pakfire.conf | cut -d'"' -f2`
|
INSTALLEDVERSION=`grep "version = " /opt/pakfire/etc/pakfire.conf | cut -d'"' -f2`
|
||||||
INSTALLEDCORE=`cat /opt/pakfire/db/core/mine`
|
INSTALLEDCORE=`cat /opt/pakfire/db/core/mine`
|
||||||
|
OLDKERNEL=`ls /boot/vmlinuz-*-ipfire | cut -d"-" -f2 | tail -n 1`
|
||||||
#
|
#
|
||||||
# check version
|
# check version
|
||||||
#
|
#
|
||||||
if [ ! "$INSTALLEDVERSION" == "$OLDVERSION" ]; then
|
if [ ! "$INSTALLEDVERSION" == "$OLDVERSION" ]; then
|
||||||
echo Error! This update is only for IPfire $OLDVERSION CORE $CORE
|
echo Error! This update is only for IPFire $OLDVERSION Core $CORE
|
||||||
echo You have installed IPfire $INSTALLEDVERSION CORE $INSTALLEDCORE
|
echo You have installed IPFire $INSTALLEDVERSION Core $INSTALLEDCORE
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# check core
|
# check core
|
||||||
if [ ! "$INSTALLEDCORE" == "$CORE" ]; then
|
if [ ! "$INSTALLEDCORE" == "$CORE" ]; then
|
||||||
echo Error! This update is only for IPfire $OLDVERSION CORE $CORE
|
echo Error! This update is only for IPFire $OLDVERSION Core $CORE
|
||||||
echo You have installed IPfire $INSTALLEDVERSION CORE $INSTALLEDCORE
|
echo You have installed IPFire $INSTALLEDVERSION Core $INSTALLEDCORE
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
echo
|
echo
|
||||||
echo Update IPfire $OLDVERSION to $NEWVERSION
|
echo Update IPFire $OLDVERSION to $NEWVERSION
|
||||||
echo
|
echo
|
||||||
echo Press Enter to begin.
|
echo Press Enter to begin.
|
||||||
read
|
read
|
||||||
@@ -80,16 +81,19 @@ echo Unpack the updated files ...
|
|||||||
tar xjvf files.ipfire -C /
|
tar xjvf files.ipfire -C /
|
||||||
#
|
#
|
||||||
# Modify grub.conf
|
# Modify grub.conf
|
||||||
#
|
#
|
||||||
|
echo
|
||||||
echo Update grub configuration ...
|
echo Update grub configuration ...
|
||||||
sed -i "s|MOUNT|$ROOT|g" /boot/grub/grub.conf
|
sed -i "s|ROOT|$ROOT|g" /boot/grub/grub.conf
|
||||||
sed -i "s|KVER|$KVER|g" /boot/grub/grub.conf
|
sed -i "s|KVER|$KVER|g" /boot/grub/grub.conf
|
||||||
sed -i "s|MOUNT|$MOUNT|g" /boot/grub/grub.conf
|
sed -i "s|MOUNT|$MOUNT|g" /boot/grub/grub.conf
|
||||||
echo "title Old Kernel" >> /boot/grub/grub.conf
|
echo "title Old Kernel" >> /boot/grub/grub.conf
|
||||||
echo " configfile /grub/grub-old.conf" >> /boot/grub/grub.conf
|
echo " configfile /grub/grub-old.conf" >> /boot/grub/grub.conf
|
||||||
|
sed -i "s|/vmlinuz-ipfire|/vmlinuz-$OLDKERNEL-ipfire|g" /boot/grub/grub-old.conf
|
||||||
#
|
#
|
||||||
# Made initramdisk
|
# Made initramdisk
|
||||||
#
|
#
|
||||||
|
echo
|
||||||
echo Create new Initramdisks ...
|
echo Create new Initramdisks ...
|
||||||
if [ "${ROOT:0:7}" == "/dev/sd" ]; then
|
if [ "${ROOT:0:7}" == "/dev/sd" ]; then
|
||||||
# Remove ide hook if root is on sda
|
# Remove ide hook if root is on sda
|
||||||
@@ -106,6 +110,17 @@ mkinitcpio -k $KVER-ipfire-smp -g /boot/ipfirerd-$KVER-smp.img
|
|||||||
# Change version of Pakfire.conf
|
# Change version of Pakfire.conf
|
||||||
#
|
#
|
||||||
sed -i "s|$OLDVERSION|$NEWVERSION|g" /opt/pakfire/etc/pakfire.conf
|
sed -i "s|$OLDVERSION|$NEWVERSION|g" /opt/pakfire/etc/pakfire.conf
|
||||||
|
#
|
||||||
|
# Create new issue
|
||||||
|
#
|
||||||
|
echo IPFire v$NEWVERSION - www.ipfire.org > /etc/issue
|
||||||
|
echo =================================== >> /etc/issue
|
||||||
|
echo \\n running on \\s \\r \\m >> /etc/issue
|
||||||
|
# Core 15 begin
|
||||||
|
perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
|
||||||
|
/etc/init.d/mISDN config
|
||||||
|
# Core 15 end
|
||||||
echo
|
echo
|
||||||
echo Update to IPfire $NEWVERSION finished. Please reboot...
|
echo
|
||||||
|
echo Update to IPFire $NEWVERSION finished. Please reboot...
|
||||||
echo
|
echo
|
||||||
|
|||||||
Reference in New Issue
Block a user