#!/bin/sh
#
# start a debugging shell
#
# runlevels: debug

# give a shell to MPlayer in debug mode
echo "### Starting debugging shell ###"
sed -i 's%ok=\"quit 166\"/>%ok=\"quit 166\"/>  <e name=\"Console\" ok=\"set_menu console\"/>%' /etc/mplayer/menu.conf

# start shell
/bin/sh

# Add option to return to shell with F12 key
echo "F12 quit 169" >> /etc/mplayer/input.conf

exit 0
