12345678910111213141516171819202122232425 |
- #!/bin/sh
- NOWUSER="`whoami`"
- [ "$NOWUSER" != "root" ] && exec sudo -A ${0} ${@}
- export TEXTDOMAIN=user2root
- export OUTPUT_CHARSET=UTF-8
- rootEXPR="s%^tty1.*%tty1::respawn:/sbin/mingetty --autologin root tty1%"
- sed -i -e "$rootEXPR" /etc/inittab
- if [ -f /etc/minit/getty/1/params ];then
- EXPR2='s%^fido$%root%'
- sed -i -e "$EXPR2" /etc/minit/getty/1/params
- fi
- pupmessage -bg green -center -title "$(gettext 'Login Manager: OK')" "$(gettext 'Ok, you will be administrator at next boot')"
|