-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP update of Pi-DJ DietPi build script
- Loading branch information
Showing
2 changed files
with
53 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Set a config value in /boot/dietpi.txt | ||
# Example: set_dietpi_config AUTO_SETUP_TIMEZONE Europe/Amsterdam | ||
function set_dietpi_config() { | ||
key=$1 | ||
value=$2 | ||
sed -i "s/^$key=.*/$key=$value/" /boot/dietpi.txt | ||
} | ||
|
||
# Copy config files from this repo's desktop folder into the Pi-DJ user's home directory | ||
function copy_dotfiles() { | ||
config_dir=$1 | ||
mkdir -p "/home/$default_username/.config/$config_dir" | ||
chown -R $default_username:$default_username "/home/$default_username/.config/$config_dir" | ||
cp -r "$REPO_DIR/desktop/$config_dir" /home/$default_username/.config/ | ||
} |