post-upgrade (473B)
1 #!/bin/sh 2 # dinit through /usr/lib/chamesle/init, so it starts the blue screen on its own when the system can't finish 3 # starting. systems installed before 0.5 get it added to their boot line here 4 g=/etc/default/grub 5 if [ -f $g ] && [ -x /usr/bin/dinit ] && ! grep -q 'init=' $g; then 6 sed -i 's|^\(GRUB_CMDLINE_LINUX_DEFAULT="[^"]*\)"|\1 init=/usr/lib/chamesle/init"|' $g 7 [ -f /boot/grub/grub.cfg ] && grub-mkconfig -o /boot/grub/grub.cfg >/dev/null 2>&1 8 fi 9 exit 0