Skip to content

Commit 369a5b7

Browse files
committed
feat: plugin functions for hostname and network changes
1 parent a9c96b0 commit 369a5b7

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎system/cuos/dialog-edit-network.sh‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,18 +138,28 @@ apply_configuration_network() {
138138
"${SCRIPT_DIR}/init.sh" --reinit configure_network
139139
}
140140

141+
trigger_network_change() {
142+
}
143+
144+
trigger_hostname_change() {
145+
}
146+
141147
main_edit_network() {
142148
edit_network
143149
confirm_save
144150

145151
save_configuration
146152
apply_configuration_network
153+
154+
echo "$CONFIG_JSON" | jq -r ".hostname" | trigger_network_change
147155
}
148156
main_edit_hostname() {
149157
edit_hostname
150158

151159
save_configuration
152160
apply_configuration_hostname
161+
162+
echo "$CONFIG_JSON" | trigger_hostname_change
153163
}
154164

155165

0 commit comments

Comments
 (0)