initramfs-uniboot: add support to start a shell and enable debug
authorOtavio Salvador <otavio@ossystems.com.br>
Fri, 20 Feb 2009 23:32:09 +0000 (20:32 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 23 Feb 2009 17:28:14 +0000 (14:28 -0300)
To start a shell, you just need to use 'shell' boot param while to
enable shell debugging use 'debug'.

packages/initrdscripts/files/init.sh

index 5cdbab5..65fef26 100644 (file)
@@ -35,6 +35,8 @@ read_args() {
                 ROOT_FSTYPE=$optarg ;;
             rootdelay=*)
                 rootdelay=$optarg ;;
+            debug) set -x ;;
+            shell) sh ;;
         esac
     done
 }