@@ -137,7 +137,7 @@ api_command_pull() {
137137 return 1
138138}
139139
140- api_command_trigger-update () {
140+ api_command_trigger_update () {
141141 docker exec cuos-app /api/cuos-trigger-update
142142 R=" $? "
143143 # if Container not started or API it not defined, perform cuos update
@@ -178,7 +178,7 @@ api_command_patch() {
178178}
179179
180180# # patch-network - Patch the network. Provide config object.
181- api_command_patch-network_func () {
181+ api_command_patch_network_func () {
182182 local input
183183 input=" $( cat) "
184184
@@ -197,13 +197,13 @@ api_command_patch-network_func() {
197197 " ${SCRIPT_DIR} /init.sh" --reinit configure_network
198198 fi
199199}
200- api_command_patch-network () {
201- api_command_patch-network_func >&2
200+ api_command_patch_network () {
201+ api_command_patch_network_func >&2
202202 api_handle_code " $? "
203203}
204204
205205# # patch-hostname - Patch the hostname. Provide config object.
206- api_command_patch-hostname_func () {
206+ api_command_patch_hostname_func () {
207207 local input
208208 input=" $( cat) "
209209
@@ -219,8 +219,8 @@ api_command_patch-hostname_func() {
219219 " ${SCRIPT_DIR} /init.sh" --reinit set_hostname
220220 fi
221221}
222- api_command_patch-hostname () {
223- api_command_patch-hostname_func >&2
222+ api_command_patch_hostname () {
223+ api_command_patch_hostname_func >&2
224224 api_handle_code " $? "
225225}
226226
@@ -231,7 +231,7 @@ api_command_rollback() {
231231}
232232
233233# # factory-reset - Factory reset
234- api_command_factory-reset () {
234+ api_command_factory_reset () {
235235 report_notice " cuos:useraction:factory-reset" " Factory reset triggered by the user"
236236 setsid " ${SCRIPT_DIR} /do-factory-reset.sh" > /data/log/factory-reset.log 2>&1 &
237237 tail -f /data/log/factory-reset.log
0 commit comments