Skip to content

Commit

Permalink
Standardize "managed by moOde" conf headers
Browse files Browse the repository at this point in the history
  • Loading branch information
moodeaudio committed Mar 19, 2024
1 parent cd2afd3 commit 7906d92
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
4 changes: 4 additions & 0 deletions boot/firmware/config.txt.overwrite
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#########################################
# This file is managed by moOde
#########################################

[cm4]
otg_mode=1

Expand Down
3 changes: 1 addition & 2 deletions usr/local/etc/mpdasrc.default
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#########################################
# This file is automatically generated by
# the player System configuration page.
# This file is managed by moOde
#########################################

username = username
Expand Down
7 changes: 3 additions & 4 deletions www/inc/mpd.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,9 @@ function formatMpdQueryResults($resp) {
}

function updMpdConf($i2sDevice) {
$data .= "#########################################\n";
$data .= "# This file is automatically generated \n";
$data .= "# by the MPD configuration page. \n";
$data .= "#########################################\n\n";
$data = "#########################################\n";
$data .= "# This file is managed by moOde \n";
$data .= "#########################################\n\n";

$cfgMpd = sqlQuery("SELECT param, value FROM cfg_mpd WHERE value!=''", sqlConnect());
foreach ($cfgMpd as $cfg) {
Expand Down
9 changes: 3 additions & 6 deletions www/inc/network.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ function cfgNetworks() {
// Write Configured SSID
$fh = fopen('/etc/NetworkManager/system-connections/' . $cfgNetwork[1]['wlanssid'] . '.nmconnection', 'w');
$data = "#########################################\n";
$data .= "# This file is managed by moOde \n";
$data .= "# Configured SSID \n";
$data .= "# This file is automatically generated by\n";
$data .= "# the player Network configuration page. \n";
$data .= "#########################################\n\n";
$data .= "[connection]\n";
$data .= "id=" . $cfgNetwork[1]['wlanssid'] . "\n";
Expand Down Expand Up @@ -63,9 +62,8 @@ function cfgNetworks() {
foreach($cfgSSID as $row) {
$fh = fopen('/etc/NetworkManager/system-connections/' . $row['ssid'] . '.nmconnection', 'w');
$data = "#########################################\n";
$data .= "# This file is managed by moOde \n";
$data .= "# Saved SSID \n";
$data .= "# This file is automatically generated by\n";
$data .= "# the player Network configuration page. \n";
$data .= "#########################################\n\n";
$data .= "[connection]\n";
$data .= "id=" . $row['ssid'] . "\n";
Expand Down Expand Up @@ -93,9 +91,8 @@ function cfgNetworks() {
// Hotspot
$fh = fopen('/etc/NetworkManager/system-connections/Hotspot.nmconnection', 'w');
$data = "#########################################\n";
$data .= "# This file is managed by moOde \n";
$data .= "# Hotspot SSID \n";
$data .= "# This file is automatically generated by\n";
$data .= "# the player Network configuration page. \n";
$data .= "#########################################\n\n";
$data .= "[connection]\n";
$data .= "id=" . $cfgNetwork[2]['wlanssid'] . "\n";
Expand Down

0 comments on commit 7906d92

Please sign in to comment.