# ---------------------------------------------------------------------------- #
# pc
# ---------------------------------------------------------------------------- #
sourceList "
install-op-/install-op-autologin.sh
install-op-/install-op-fstab.sh
install-pr-/install-pr-alias.sh
install-pr-/install-pr-bashrc.sh
hardware/install-op-fix-suspend.sh
"
file=/etc/sudoers.d/$user
if notFile $file; then
cat >$tmpf <<EOF
$user ALL=(root) NOPASSWD:/sbin/modprobe dm-crypt
$user ALL=(root) NOPASSWD:/sbin/cryptsetup
$user ALL=(root) NOPASSWD:/usr/bin/dd
$user ALL=(root) NOPASSWD:/usr/bin/mount
$user ALL=(root) NOPASSWD:/usr/bin/umount
$user ALL=(root) NOPASSWD:/usr/bin/systemctl restart lightdm
EOF
sudoRoot cp $tmpf $file
fi
file=/etc/X11/xorg.conf.d/99-mode.conf
if notFile $file; then
cat >$tmpf <<EOF
Section "Monitor"
Identifier "LVDS"
Option "PreferredMode" "1280x800"
Option "Primary" "true"
EndSection
Section "Monitor"
Identifier "VGA-0"
Option "PreferredMode" "720x400"
Option "RightOf" "LVDS"
EndSection
EOF
sudoRoot cp $tmpf $file
fi