Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6131156806 |
@@ -41,9 +41,9 @@ livetimer=$(get_timer_ms)
|
||||
configure_sudoers_d
|
||||
echo "Configured sudoers: $(elapsed_time_ms ${livetimer})ms" >> "${LOGFILE}"
|
||||
|
||||
# livetimer=$(get_timer_ms)
|
||||
# configure_machine_id
|
||||
# echo "Configured machine-id: $(elapsed_time_ms ${livetimer})ms" >> "${LOGFILE}"
|
||||
livetimer=$(get_timer_ms)
|
||||
configure_machine_id
|
||||
echo "Configured machine-id: $(elapsed_time_ms ${livetimer})ms" >> "${LOGFILE}"
|
||||
|
||||
livetimer=$(get_timer_ms)
|
||||
configure_accountsservice "${username}"
|
||||
|
@@ -269,17 +269,17 @@ configure_language(){
|
||||
echo "Configured timezone: ${timezone}" >> "${LOGFILE}"
|
||||
}
|
||||
|
||||
# configure_machine_id(){
|
||||
# if [ -e "/etc/machine-id" ] ; then
|
||||
# # delete existing machine-id
|
||||
# echo "Deleting existing machine-id ..." >> "${LOGFILE}"
|
||||
# rm /etc/machine-id
|
||||
# fi
|
||||
# # set unique machine-id
|
||||
# echo "Setting machine-id ..." >> "${LOGFILE}"
|
||||
# dbus-uuidgen --ensure=/etc/machine-id
|
||||
# ln -sf /etc/machine-id /var/lib/dbus/machine-id
|
||||
# }
|
||||
configure_machine_id(){
|
||||
if [ -e "/etc/machine-id" ] ; then
|
||||
# delete existing machine-id
|
||||
echo "Deleting existing machine-id ..." >> "${LOGFILE}"
|
||||
rm /etc/machine-id
|
||||
fi
|
||||
# set unique machine-id
|
||||
echo "Setting machine-id ..." >> "${LOGFILE}"
|
||||
dbus-uuidgen --ensure=/etc/machine-id
|
||||
ln -sf /etc/machine-id /var/lib/dbus/machine-id
|
||||
}
|
||||
|
||||
configure_sudoers_d(){
|
||||
echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/g_wheel
|
||||
|
Reference in New Issue
Block a user