mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
shorten some seds
This commit is contained in:
parent
0b6c961e72
commit
e82ced1bd9
1 changed files with 2 additions and 2 deletions
|
|
@ -341,7 +341,7 @@ print "Generating a new fstab."
|
|||
genfstab -U /mnt >> /mnt/etc/fstab
|
||||
|
||||
# Configure selected locale and console keymap
|
||||
sed -i "s/^#$locale/$locale/" /mnt/etc/locale.gen
|
||||
sed -i "/^#$locale/s/^#//" /mnt/etc/locale.gen
|
||||
echo "LANG=$locale" > /mnt/etc/locale.conf
|
||||
echo "KEYMAP=$kblayout" > /mnt/etc/vconsole.conf
|
||||
|
||||
|
|
@ -453,7 +453,7 @@ EOF
|
|||
|
||||
# Pacman eye-candy features.
|
||||
print "Enabling colours, animations, and parallel in pacman."
|
||||
sed -i 's/^#Color$/Color\nILoveCandy/;s/^#ParallelDownloads.*/ParallelDownloads = 10/' /mnt/etc/pacman.conf
|
||||
sed -Ei 's/^#(Color)$/\1\nILoveCandy/;s/^#(ParallelDownloads).*/\1 = 10/' /mnt/etc/pacman.conf
|
||||
|
||||
# Enabling various services.
|
||||
print "Enabling Reflector, automatic snapshots, BTRFS scrubbing and systemd-oomd."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue