firstboot auto execute shell

#!/bin/sh

expect <<-EOF
spawn firstboot
expect "*N/y*"
send "y\r"
interact
expect eof
EOF

 

posted @ 2016-04-13 13:59  阿青1987  阅读(62)  评论(0编辑  收藏