Skip to content

Commit

Permalink
Adjust networking.service
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Mar 21, 2022
1 parent 07f45ef commit 2e60d71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rebuild
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,10 @@ refactor_files() {
# Make the .bashrc take effect, Default shell settings file: /etc/default/useradd
echo '[[ "${SHELL}" == *bash && -f "${HOME}/.bashrc" ]] && . ${HOME}/.bashrc' >>etc/profile

# Reduce network latency [ A start job is running for raise network interfaces (5 mins 1 sec) ]
network_service="usr/lib/systemd/system/networking.service"
sed -i "s|TimeoutStartSec=.*|TimeoutStartSec=10sec|g" ${network_service} 2>/dev/null

# Add tasks that need to be executed on initial startup
armbian_firstrun="usr/lib/armbian/armbian-firstrun"
sed -i '/armbian-release/i\[ -f "/usr/sbin/armbian-fix" ] && . /usr/sbin/armbian-fix' ${armbian_firstrun} 2>/dev/null
Expand Down

0 comments on commit 2e60d71

Please sign in to comment.