#!/bin/bash # # gonX@overclocked.net # # reboots computer using kexec # # it's also possible to read # grub.cfg or menu.lst to # figure out what files it # would normally boot from # # but that hasn't been # implemented into this # script yet # # these are the files it will use _KERNEL=/boot/vmlinuz26-gonx _INITRD=/boot/kernel26-gonx.img _USEINITRD=yes if [ "$1" = "" ]; then if [ "$_USEINITRD" = "yes" ]; then kexec --reuse-cmdline $_KERNEL --initrd=$_INITRD --ramdisk=$_INITRD else kexec --reuse-cmdline $_KERNEL fi else if [ "$_USEINITRD" = "yes" ]; then kexec $_KERNEL --initrd=_INITRD --ramdisk=$_INITRD --command-line=$@ else kexec $_KERNEL --command-line=$@ fi fi