--- /dev/null
+#!/bin/sh
+
+# Run a program specified by Petitboot.
+$@
+echo "$0 ran '$@'"
+
+# Wait for the user to exit back to Petitboot.
+read -n 1 -r -p "Press ENTER to return to Petitboot or any other key to drop to a shell" key
+
+if [ "$key" == "" ]; then
+ echo "Returning to Petitboot.."
+ exit 0
+fi
+
+printf "\nLaunching shell. Type 'exit' to return\n"
+/bin/sh