393,7 → 393,7 |
grep -v '[eE]nter password:' | \ |
sed -e "s/PBKDF2 hash of your password is //"` |
echo "GRUB2_PASSWORD=$pbkdf2" > /boot/grub2/user.cfg |
[ -e /etc/grub.d/default-10_linux ] || cp /etc/grub.d/10_linux /etc/grub.d/default-10_linux |
[ -e /root/grub.default ] || cp /etc/grub.d/10_linux /root/grub.default |
cp -f $DIR_CONF/grub-10_linux /etc/grub.d/10_linux # Request password only on menu editing attempts (not when selecting an entry) |
chmod 0600 /boot/grub2/user.cfg |
echo "# Login name and password to protect GRUB2 boot menu (!!!qwerty keyboard) : " > $PASSWD_FILE |
1643,7 → 1643,8 |
{ |
[ -d /var/log/dnsmasq ] || mkdir /var/log/dnsmasq |
# 1st dnsmasq listen on udp 53 ("dnsmasq - forward"). It's used as dhcp server only if "alcasar-bypass" is on. |
cat << EOF > /etc/dnsmasq.conf |
[ -e /etc/dnsmasq.conf.default ] || cp /etc/dnsmasq.conf /etc/dnsmasq.conf.default |
cat << EOF > /etc/dnsmasq.conf |
# Configuration file for "dnsmasq in forward mode" |
conf-file=$DIR_DEST_ETC/alcasar-dns-name # local DNS resolutions |
listen-address=$PRIVATE_IP |