Skip to content

Commit

Permalink
Devuan 2-5 reboot logic fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
ladar committed Dec 6, 2023
1 parent 8cf0aba commit bc5b014
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 44 deletions.
4 changes: 2 additions & 2 deletions scripts/devuan1/network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ echo before reboot
date ; uptime ; uname -r

# Reboot onto the new kernel (if applicable).
( /sbin/shutdown -r +1 ) &
echo "Rebooting in thirty seconds..."
bash -c 'sleep 10 ; /sbin/reboot' &
echo "Rebooting..."
exit 0
6 changes: 0 additions & 6 deletions scripts/devuan2/floppy.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/bin/bash -eu

echo after reboot
date ; uptime ; uname -r

printf 'blacklist floppy\n' > /etc/modprobe.d/floppy.conf

# Then run this instead to rebuild all of the install
Expand All @@ -12,6 +9,3 @@ for kernel in /boot/config-*; do
KERNEL=${kernel#*-}
mkinitramfs -o "/boot/initrd.img-${KERNEL}.img" "${KERNEL}" || exit 1
done



8 changes: 2 additions & 6 deletions scripts/devuan2/network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@ else
printf "\n127.0.0.1 magma.localdomain\n\n" >> /etc/hosts
fi

echo before reboot
date ; uptime ; uname -r


# Tne network interface and DHCP client are configured by the installer
# The network interface and DHCP client are configured by the installer
# via the preseed config, to avoid IP address changes during a reboot.
( /sbin/shutdown -r +1 ) &
echo "Rebooting in thirty seconds..."
echo "Rebooting..."
exit 0
3 changes: 0 additions & 3 deletions scripts/devuan3/floppy.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/bin/bash -eu

echo after reboot
date ; uptime ; uname -r

printf 'blacklist floppy\n' > /etc/modprobe.d/floppy.conf

# Then run this instead to rebuild all of the install
Expand Down
8 changes: 2 additions & 6 deletions scripts/devuan3/network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@ else
printf "\n127.0.0.1 magma.localdomain\n\n" >> /etc/hosts
fi

echo before reboot
date ; uptime ; uname -r


# Tne network interface and DHCP client are configured by the installer
# The network interface and DHCP client are configured by the installer
# via the preseed config, to avoid IP address changes during a reboot.
( /sbin/shutdown -r +1 ) &
echo "Rebooting in thirty seconds..."
echo "Rebooting..."
exit 0
4 changes: 0 additions & 4 deletions scripts/devuan4/floppy.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/bin/bash -eu

echo after reboot
date ; uptime ; uname -r

printf 'blacklist floppy\n' > /etc/modprobe.d/floppy.conf

# Then run this instead to rebuild all of the install
Expand All @@ -12,4 +9,3 @@ for kernel in /boot/config-*; do
KERNEL=${kernel#*-}
mkinitramfs -o "/boot/initrd.img-${KERNEL}.img" "${KERNEL}" || exit 1
done

7 changes: 2 additions & 5 deletions scripts/devuan4/network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ else
printf "\n127.0.0.1 magma.localdomain\n\n" >> /etc/hosts
fi

echo before reboot
date ; uptime ; uname -r

# Tne network interface and DHCP client are configured by the installer
# The network interface and DHCP client are configured by the installer
# via the preseed config, to avoid IP address changes during a reboot.
( /sbin/shutdown -r +1 ) &
echo "Rebooting in thirty seconds..."
echo "Rebooting..."
exit 0
7 changes: 0 additions & 7 deletions scripts/devuan5/floppy.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/bin/bash -eu

echo after reboot
date ; uptime ; uname -r

printf 'blacklist floppy\n' > /etc/modprobe.d/floppy.conf

# Then run this instead to rebuild all of the install
Expand All @@ -12,7 +9,3 @@ for kernel in /boot/config-*; do
KERNEL=${kernel#*-}
mkinitramfs -o "/boot/initrd.img-${KERNEL}.img" "${KERNEL}" || exit 1
done




7 changes: 2 additions & 5 deletions scripts/devuan5/network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ else
printf "\n127.0.0.1 magma.localdomain\n\n" >> /etc/hosts
fi

echo before reboot
date ; uptime ; uname -r

# Tne network interface and DHCP client are configured by the installer
# The network interface and DHCP client are configured by the installer
# via the preseed config, to avoid IP address changes during a reboot.
( /sbin/shutdown -r +1 ) &
echo "Rebooting in thirty seconds..."
echo "Rebooting..."
exit 0

0 comments on commit bc5b014

Please sign in to comment.