Skip to content

Commit 7e55e6d

Browse files
committed
Small improvements for Ubuntu
1 parent 3659bcf commit 7e55e6d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

scripts/enable-services.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,15 @@ else
2525
fi
2626
fi
2727

28-
if does_bin_exist 'chronyd'; then
28+
if does_bin_exist 'chrony' 'chronyd'; then
2929
disable_service 'ntpd'
3030
disable_service 'systemd-timesyncd'
31-
enable_service 'chronyd'
31+
32+
if does_bin_exist 'chrony'; then
33+
enable_service 'chrony'
34+
elif does_bin_exist 'chronyd'; then
35+
enable_service 'chronyd'
36+
fi
3237
elif does_bin_exist 'ntpd'; then
3338
enable_service 'ntpd'
3439
disable_service 'systemd-timesyncd'

scripts/set-system-locale-timedate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if [ ! -f "${LOCALTIME_FILE_PATH}" ]; then
4242
echo 'Setting up the local time...'
4343

4444
ln -sf '/usr/share/zoneinfo/Europe/Bucharest' "${LOCALTIME_FILE_PATH}"
45-
hwclock --systohc
45+
does_bin_exist 'hwclock' && hwclock --systohc
4646
fi
4747

4848
# Update the X11 keyboard layout definitions

0 commit comments

Comments
 (0)