Skip to content

Commit

Permalink
Removing etch compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-baumann committed Mar 15, 2010
1 parent 677f6af commit 5f8bb29
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 70 deletions.
12 changes: 2 additions & 10 deletions scripts/init-premount/select_eth_device
Expand Up @@ -36,16 +36,8 @@ if [ "$bootconf" != "BOOT=nfs" ] && [ "$NETBOOT" = "" ]; then
fi

# be sure this has been run (*should* be done by scripts/init-premount/udev)
if [ -x /sbin/udevadm ]
then
# lenny
udevadm trigger
udevadm settle
else
# etch
udevtrigger
udevsettle
fi
udevadm trigger
udevadm settle

# we want to do some basic IP
modprobe -q af_packet
Expand Down
24 changes: 4 additions & 20 deletions scripts/live
Expand Up @@ -762,16 +762,8 @@ do_netmount ()

modprobe -q af_packet # For DHCP

if [ -x /sbin/udevadm ]
then
# lenny
udevadm trigger
udevadm settle
else
# etch
udevtrigger
udevsettle
fi
udevadm trigger
udevadm settle

ipconfig ${DEVICE} | tee /netboot.config

Expand Down Expand Up @@ -1232,16 +1224,8 @@ setup_unionfs ()
modprobe -q -b ${module}
done

if [ -x /sbin/udevadm ]
then
# lenny
udevadm trigger
udevadm settle
else
# etch
udevtrigger
udevsettle
fi
udevadm trigger
udevadm settle

# For some reason, udevsettle does not block in this scenario,
# so we sleep for a little while.
Expand Down
24 changes: 2 additions & 22 deletions scripts/live-bottom/21xvidemode
Expand Up @@ -47,29 +47,9 @@ then
exit 0
fi

if [ $(cat /root/etc/debian_version | sed 's|\..*$||') -ge 4 ]
if [ -x "$(which xrandr 2>/dev/null)" ]
then
# lenny or newer
if [ -x "$(which xrandr 2>/dev/null)" ]
then
echo "xrandr -s ${XVIDEOMODE} || /bin/true" >> /root/etc/X11/Xsession.d/21xvidemode
fi
else
# etch
mount -o bind /sys /root/sys
mount -o bind /proc /root/proc
mount -o bind /dev /root/dev

chroot /root debconf-communicate -fnoninteractive live-initramfs > /dev/null << EOF
set xserver-xorg/config/monitor/mode-list ${XVIDEOMODE}
set xserver-xorg/config/display/modes ${XVIDEOMODE}
EOF

chroot /root dexconf

umount /root/sys
umount /root/proc
umount /root/dev
echo "xrandr -s ${XVIDEOMODE} || /bin/true" >> /root/etc/X11/Xsession.d/21xvidemode
fi

log_end_msg
12 changes: 2 additions & 10 deletions scripts/live-bottom/23networking
Expand Up @@ -46,16 +46,8 @@ iface lo inet loopback
EOF

if [ -x /sbin/udevadm ]
then
# lenny
udevadm trigger
udevadm settle
else
# etch
udevtrigger
udevsettle
fi
udevadm trigger
udevadm settle

if [ -z "${NETBOOT}" -a -n "${STATICIP}" -a "${STATICIP}" != "frommedia" ]
then
Expand Down
9 changes: 1 addition & 8 deletions scripts/live-helpers
Expand Up @@ -191,14 +191,7 @@ setup_loop ()

modprobe -q -b "${module}"

if [ -x /sbin/udevadm ]
then
# lenny
udevadm settle
else
# etch
udevsettle
fi
udevadm settle

for loopdev in ${pattern}
do
Expand Down

0 comments on commit 5f8bb29

Please sign in to comment.