stty does not handle no-tty input
In rudder-init, when
Hit any key to continue... is displayed, and you "echo" the answers to automate the process, you get an error:
Hit any key to continue....stty: standard input: Inappropriate ioctl for device stty: standard input: Inappropriate ioctl for device
Please make stty conditional, by using [ -t 0 ], so no-tty environments can skip this part.