Rasperry piカメラの色味がおかしい

$ raspistill -r -o test.jpg
で取得した画像がピンクになる

awbオプションをつけるともとに戻る
$ raspistill -awb greyworld -r -o test.jpg
forums.raspberrypi.com


systemdのサービスに以下を追加するといいとのこと
github.com

vim /lib/systemd/system/raspicamera.service

[Unit]
Description=AWB
After=network.target

[Service]
Type=simple
User=root
WorkingDirectory=/usr/bin
ExecStart=vcdbg set awb_mode 0
Restart=on-failure

[Install]
WantedBy=multi-user.target