# vi /etc/rc2.local
#!/bin/bash
[実行したいコマンドを書く...]
# chmod +x /etc/rc2.local
# vi /usr/lib/systemd/system/rc2-local.service
[Unit]
Description=/etc/rc2.local Compatibility
Wants=network.target
[Service]
Type=oneshot
ExecStart=/etc/rc2.local
TimeoutSec=0
#StandardInput=tty
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
# ln -s /usr/lib/systemd/system/rc2-local.service /etc/systemd/system/multi-user.target.wants/
# systemctl --system daemon-reload
# systemctl enable rc2-local.service
systenctl rc2.local 自動起動
2015/3/17
カテゴリー » Raspberry Pi 2 Model B
— posted by くま at 05:36 pm TrackBack [0]
Comments