mirror of
https://github.com/openwrt/telephony.git
synced 2025-05-01 14:31:11 +08:00

The baresip init script is changed to use UCI instead of the debian style /etc/default basic service configuration. A uci-defaults script is added to create a basic UCI config: -- config baresip main option enable 0 option options '' -- With this change an issues is also resolved, on which the baresip service doesn't start due to the baresip user not being the owner of the /etc/baresip configuration directory. Additionally a reload_config trigger is added for baresip. Signed-off-by: Daniel Danzberger <dd@embedd.com>
13 lines
182 B
Plaintext
13 lines
182 B
Plaintext
CFGFILE=/etc/config/baresip
|
|
|
|
if [ ! -f "$CFGFILE" ]; then
|
|
cat >$CFGFILE <<EOF
|
|
config baresip main
|
|
option enable 0
|
|
option options ''
|
|
EOF
|
|
fi
|
|
|
|
chown -R baresip:baresip /etc/baresip
|
|
|