LoginSignup
4
3

More than 5 years have passed since last update.

Ubuntu14.04でシリアルポートでmgetty待ち受けの設定方法

Posted at

PPP Sevrer on Linuxではシリアルポートの待受設定を/etc/inittabに書くようになっているがUbuntuにはinittabがない。
一部ネットの情報では/etc/event.d/にinittabと同じような設定ファイルをおけばいいと書かれているがそもそも/etc/event.dがない。
よくよく調べてみると/etc/init/hogehoge.confに起動時の設定が書かれている。

設定手順は以下のとおり

  1. /etc/init/tty1.confをコピーして/etc/init/ttyS0.conf(使用するシリアルポート番号)とする
  2. /etc/init/ttyS0の最下行を以下のように変更する

exec /sbin/getty -8 38400 tty1

exec /sbin/mgetty ttyS0 -D /dev/ttyS0

ちなみに起動時にモデムやTAの初期化が必要な場合は以下のように書く

exec /sbin/mgetty ttyS0 -D /dev/ttyS0 -m '"" ATコマンド OK'

ちなみにinit qではなぜかうまく反映してくれなかったので再起動したところきちんとモデムからのRAS接続に応答してくれるようになった。

いやーどこにこの設定を書いていいかがわからなくてたどりつくまでが大変だった

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3