Skip to content

Commit

Permalink
limit to what busybox ash knows
Browse files Browse the repository at this point in the history
  • Loading branch information
Artoria2e5 committed Oct 9, 2024
1 parent 805139f commit 81c4839
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions assets/startup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

DEFAULT_NTP="0.pool.ntp.org,1.pool.ntp.org,2.pool.ntp.org,3.pool.ntp.org"
CHRONY_CONF_FILE="/etc/chrony/chrony.conf"
Expand Down Expand Up @@ -44,8 +44,9 @@ else
fi
fi

IFS="," read -ra ntp_servers <<< "$NTP_SERVERS"
for N in "${ntp_servers[@]}"; do
IFS=", "
set -f
for N in $NTP_SERVERS; do
# strip any quotes found before or after ntp server
N_CLEANED=${N//\"}

Expand Down

0 comments on commit 81c4839

Please sign in to comment.