mirror of
https://github.com/openwrt/packages.git
synced 2025-12-10 04:31:21 +00:00
avoid a non-critical error caused by getent not being installed Signed-off-by: Niklas Thorild <niklas@thorild.se>
9 lines
182 B
Bash
Executable File
9 lines
182 B
Bash
Executable File
#!/bin/sh
|
|
# Generates default telegraf.conf if it doesn't already exist
|
|
|
|
[ -f /etc/telegraf.conf ] && exit 0
|
|
|
|
HOME=/root /usr/bin/telegraf config create > /etc/telegraf.conf
|
|
|
|
exit 0
|