前提
- opkgを使えること。
使うまで
インストール
$ sudo opkg install mlocate
まだ使えない
$ locate hogehoge
locate: can not stat () `/opt/var/mlocate/mlocate.db': No such file or directory
updatedbするが、できない
# updatedb
updatedb: can not find group `mlocate'
mlocateグループの追加
# synogroup -add mlocate
mlocateグループへ設定
# chmod g=rx,o= /opt/var/mlocate
# chgrp mlocate /opt/bin/locate
# chmod g+s,go-w /opt/bin/locate
# touch /opt/var/mlocate/mlocate.db
# chgrp mlocate /opt/var/mlocate/mlocate.db
updatedb
# updatedb
使える
$ locate hogehoge
参考文献
How to fix “updatedb: can not find group ` mlocate'” on entware?
https://unix.stackexchange.com/questions/328510/how-to-fix-updatedb-can-not-find-group-mlocate-on-entware