mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-01-23 22:42:28 +08:00
more local configurations
This commit is contained in:
parent
a87fee617e
commit
6b65f40783
@ -8,6 +8,35 @@ echo "localhost" > /etc/hostname
|
||||
|
||||
echo FONT=Lat2-Terminus16 > /etc/vconsole.conf
|
||||
|
||||
cat > /etc/locale.conf << "EOF"
|
||||
LANG="en_US.UTF-8"
|
||||
EOF
|
||||
|
||||
# /etc/profile
|
||||
|
||||
cat > /etc/profile << "EOF"
|
||||
# Begin /etc/profile
|
||||
|
||||
for i in $(locale); do
|
||||
unset ${i%=*}
|
||||
done
|
||||
|
||||
if [[ "$TERM" = linux ]]; then
|
||||
export LANG=C.UTF-8
|
||||
else
|
||||
source /etc/locale.conf
|
||||
|
||||
for i in $(locale); do
|
||||
key=${i%=*}
|
||||
if [[ -v $key ]]; then
|
||||
export $key
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# End /etc/profile
|
||||
EOF
|
||||
|
||||
# /etc/inputrc
|
||||
|
||||
cat > /etc/inputrc << "EOF"
|
||||
|
@ -44,6 +44,19 @@ DHCP=ipv4
|
||||
EOF
|
||||
# auto-update "make-ca" certificate bundle
|
||||
systemctl enable update-pki.timer
|
||||
#
|
||||
# Below has to be run after booting, not from chroot
|
||||
# It makes sure timedatectl knows my hardware clock is UTC and then
|
||||
# identifies my local timezone as America/Los_Angeles
|
||||
# (often incorrectly called "Pacific Time")
|
||||
#
|
||||
cat > /root/timedatectl.sh << "EOF"
|
||||
#!/bin/bash
|
||||
timedatectl set-local-rtc 1
|
||||
if [ $? -eq 0 ]; then
|
||||
timedatectl set-timezone America/Los_Angeles
|
||||
fi
|
||||
EOF
|
||||
else
|
||||
# bootable USB thumb drive
|
||||
echo "lfsusb" > /etc/hostname
|
||||
|
Loading…
Reference in New Issue
Block a user