Skip to content

Commit

Permalink
Add default script judgment
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Mar 10, 2022
1 parent 05decdb commit 3ce730b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rebuild
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,8 @@ refactor_files() {
# Custom banner name
sed -i "s|BOARD_NAME=.*|BOARD_NAME=\"Aml ${soc}\"|g" ${armbian_release_file} 2>/dev/null

# Make the .bashrc take effect
echo '[ -f "${HOME}/.bashrc" ] && . ${HOME}/.bashrc' >>etc/profile
# Make the .bashrc take effect, Default shell settings file: /etc/default/useradd
echo '[[ "${SHELL}" == *bash && -f "${HOME}/.bashrc" ]] && . ${HOME}/.bashrc' >>etc/profile

# Add tasks that need to be executed on initial startup
armbian_firstrun="usr/lib/armbian/armbian-firstrun"
Expand Down

0 comments on commit 3ce730b

Please sign in to comment.