2013-02-12 17:09:50 -05:00
|
|
|
#!@SBINDIR@/runscript
|
2009-05-01 15:11:40 +01:00
|
|
|
# Copyright (c) 2008 Roy Marples <roy@marples.name>
|
2011-06-29 19:46:31 -04:00
|
|
|
# Released under the 2-clause BSD license.
|
2008-01-10 23:48:53 +00:00
|
|
|
|
2011-01-17 04:49:07 -05:00
|
|
|
depend()
|
2008-03-02 21:13:21 +00:00
|
|
|
{
|
|
|
|
after fsck
|
2012-07-02 22:04:22 -05:00
|
|
|
keyword -prefix
|
2008-03-02 21:13:21 +00:00
|
|
|
}
|
|
|
|
|
2008-01-10 23:48:53 +00:00
|
|
|
start()
|
|
|
|
{
|
|
|
|
ebegin "Setting tty flags"
|
|
|
|
ttyflags -a
|
|
|
|
eend $? || return $?
|
2011-01-17 04:49:07 -05:00
|
|
|
|
2008-01-10 23:48:53 +00:00
|
|
|
if [ -c /dev/ttyp0 ]; then
|
|
|
|
chmod 666 /dev/tty[p-uw-zP-T][0-9a-zA-Z]
|
|
|
|
fi
|
|
|
|
if [ -c /dev/ttyv1 ]; then
|
|
|
|
chmod 666 /dev/ttyv[0-9a-zA-Z]
|
|
|
|
fi
|
|
|
|
}
|