Skip to content

Commit

Permalink
Merging casper 1.103.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-baumann committed Sep 23, 2007
1 parent 432cc4a commit 25def63
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 14 deletions.
8 changes: 8 additions & 0 deletions docs/ChangeLog.casper
@@ -1,3 +1,11 @@
casper (1.103) gutsy; urgency=low

* Disable anacron harder so that it doesn't get started by battery events.
* Don't write out DHCP network interface stanzas if network-manager is
installed (LP: #139403).

-- Colin Watson <cjwatson@ubuntu.com> Wed, 19 Sep 2007 12:52:21 +0100

casper (1.102) gutsy; urgency=low

* Rename 42disable_cups_apparmor to 42disable_apparmor and remove AppArmor's
Expand Down
24 changes: 15 additions & 9 deletions scripts/live-bottom/23networking
Expand Up @@ -82,18 +82,21 @@ else
fi

# iterate the physical interfaces and add them to the interfaces list
for interface in /sys/class/net/eth* /sys/class/net/ath* /sys/class/net/wlan*
do
[ -e $interface ] || continue
i="$(basename $interface)"
if [ "$method" != dhcp ] || [ ! -x /root/usr/sbin/NetworkManager ]
then
for interface in /sys/class/net/eth* /sys/class/net/ath* /sys/class/net/wlan*
do
[ -e $interface ] || continue
i="$(basename $interface)"

cat >> "$IFFILE" << EOF
auto $i
iface $i inet $method
EOF

done
done
fi

if [ ! -f /root/etc/resolv.conf -a -f /netboot.config ]
then
Expand Down Expand Up @@ -125,16 +128,19 @@ EOF
fi
fi

#for i in eth0 eth1 eth2 ath0 wlan0
#do
# grep -q "iface $i" $IFFILE && continue
#if [ ! -x /root/usr/sbin/NetworkManager ]
#then
# for i in eth0 eth1 eth2 ath0 wlan0
# do
# grep -q "iface $i" $IFFILE && continue
#
#cat >> "$IFFILE" << EOF
#auto $i
#iface $i inet dhcp
#
#EOF
#
#done
# done
#fi

log_end_msg
8 changes: 3 additions & 5 deletions scripts/live-bottom/25configure_init
Expand Up @@ -108,12 +108,10 @@ if [ -d /etc/rc0.d ]
then
# This has the nice side effect of the cron.{daily,weekly,monthly} jobs in
# /etc/crontab remaining disabled, yet also not run by anacron
if [ -x /root/etc/init.d/anacron ]
if [ -x /root/usr/sbin/anacron ]
then
for f in /root/etc/rc?.d/S??anacron
do
mv ${f} ${f%/*}/K00anacron
done
chroot /root dpkg-divert --add --rename --quiet /usr/sbin/anacron
ln -s /bin/true /usr/sbin/anacron
fi

# No point, really
Expand Down

0 comments on commit 25def63

Please sign in to comment.