]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Add dialer to updater
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 24 Sep 2008 22:30:31 +0000 (00:30 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 24 Sep 2008 22:30:31 +0000 (00:30 +0200)
Reinstall grub after kernel update
again dialer changes for pin handling

config/rootfiles/updater/filelists/files
config/rootfiles/updater/update.sh
src/ppp/dialer

index 43a11d5f64a97895dcc8c94500b61e05183ad39f..def3d91179cee3467bd25c1ee6a34e803b10ea94 100644 (file)
@@ -3,6 +3,7 @@ etc/init.d/mISDN
 etc/modprobe.d/blacklist
 usr/bin/bc
 usr/bin/dc
+etc/ppp/dialer
 etc/rc.d/init.d/checkfstab
 etc/rc.d/rcsysinit.d/S19checkfstab
 etc/rc.d/init.d/dhcp
index 6a584649bbe22efd335d361c1698edf4e08de0d5..2f694566486dafa3874411922d03f8721ea029b7 100755 (executable)
@@ -54,6 +54,8 @@ echo etc/sysconfig/lm_sensors >> /opt/pakfire/tmp/ROOTFILES
 echo var/log/rrd >> /opt/pakfire/tmp/ROOTFILES
 echo var/updatexlerator >> /opt/pakfire/tmp/ROOTFILES
 echo lib/iptables >> /opt/pakfire/tmp/ROOTFILES
+echo lib/modules >> /opt/pakfire/tmp/ROOTFILES
+echo boot >> /opt/pakfire/tmp/ROOTFILES
 #
 tar cjvf /var/ipfire/backup/update_$OLDVERSION-$NEWVERSION.tar.bz2 \
    -T /opt/pakfire/tmp/ROOTFILES --exclude='#*' -C / > /dev/null 2>&1 
@@ -64,6 +66,10 @@ echo Update IPfire to $NEWVERSION ...
 #
 rm -rf /etc/rc.d/rc3.d/S20collectd
 #
+# Delete squid symlink
+#
+rm -rf /etc/rc.d/rc3.d/S99squid
+#
 # Delete old iptables libs...
 #
 rm -rf /lib/iptables
@@ -126,6 +132,10 @@ fi
 mkinitcpio -k $KVER-ipfire -g /boot/ipfirerd-$KVER.img
 #mkinitcpio -k $KVER-ipfire-smp -g /boot/ipfirerd-$KVER-smp.img
 #
+# ReInstall grub
+#
+grub-install --no-floppy ${ROOT::`expr length $ROOT`-1}
+#
 # Change version of Pakfire.conf
 #
 sed -i "s|$OLDVERSION|$NEWVERSION|g" /opt/pakfire/etc/pakfire.conf
index d1dba0ac1109d91966e4834ce421fe979df01620..208e3b96776b81c4b3f5d025d87367507ef237a7 100644 (file)
@@ -19,9 +19,9 @@ my %modemsettings;
 &General::readhash("${General::swroot}/modem/settings", \%modemsettings);
 
 if ($modemsettings{'INIT'} eq '') {
-       $modemsettings{'INIT'} = 'AT'; }
+       $modemsettings{'INIT'} = '+++ATZ'; }
 if ($modemsettings{'HANGUP'} eq '') {
-       $modemsettings{'HANGUP'} = 'AT'; }
+       $modemsettings{'HANGUP'} = 'ATH'; }
 if ($modemsettings{'SPEAKER_ON'} eq '') {
        $modemsettings{'SPEAKER_ON'} = 'AT'; }
 if ($modemsettings{'SPEAKER_OFF'} eq '') {
@@ -82,8 +82,9 @@ my $com = "/usr/sbin/chat -v -r /var/log/connect.log                  \
        ABORT                   '\\nRINGING\\r\\n\\r\\nRINGING\\r'      \
        ABORT                   '\\nNO CARRIER\\r'                      \
        ''                      '$modemsettings{'INIT'}'                \
-       OK                      '$add_at1'                              \
-       ''                      '$modemsettings{'HANGUP'}'              \
+       ''                      '$add_at1'                              \
+       ''                      '$modemsettings{'INIT'}'                \
+       OK                      '$modemsettings{'HANGUP'}'              \
        OK                      '$speaker'                              \
        OK                      '$add_at2'                              \
        ''                      '$add_at3'                              \