Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / amd64 / bin / autopasswd
CommitLineData
920dae64
AT
1#!/bin/sh
2# \
3exec expect -f "$0" ${1+"$@"}
4# wrapper to make passwd(1) be non-interactive
5# username is passed as 1st arg, passwd as 2nd
6
7set password [lindex $argv 1]
8spawn passwd [lindex $argv 0]
9expect "assword:"
10send -- "$password\r"
11expect "assword:"
12send -- "$password\r"
13expect eof