8000-rootpw 212 Bytes
Newer Older
1
2
3
4
5
#!/bin/sh

for X in $(cat /proc/cmdline); do
    case ${X} in
        rootpw=*)
Tails developers's avatar
Tails developers committed
6
7
8
9
            PW=${X#rootpw=}
            usermod -p $(echo ${PW} | mkpasswd -s) root
            exit 0
            ;;
10
11
    esac
done