UmVirt LFS Assistant command info

🐒Command info

🔙Parent Directory  -

select_console_mouse_device

Info: Update gpm mouse device & systemctl restart
Commands:
DEVICE=$(whiptail --inputbox "Please enter mouse device path" 8 78 /dev/input/mouse0 --title "Mouse device" 3>&1 1>&2 2>&3)

exitstatus=$?
if [ $exitstatus = 0 ]; then
    echo ""
else
    echo "Configuration cancelled!\n"
	exit
fi

TYPE=$(whiptail --inputbox "Please enter mouse type" 8 78 ps2 --title "Mouse type" 3>&1 1>&2 2>&3)

exitstatus=$?
if [ $exitstatus = 0 ]; then
    echo ""

else
    echo "Configuration cancelled!\n"
	exit
fi

clear
echo "DEVICE: $DEVICE"
echo "TYPE: $TYPE"
echo -e "Configuring systemd..\n\n"

cd /usr/share/blfs-systemd-units
make install-gpm

install -v -dm755 /etc/systemd/system/gpm.service.d
echo "ExecStart=/usr/sbin/gpm -m $DEVICE -t $TYPE" > /etc/systemd/system/gpm.service.d/99-user.conf

systemctl daemon-reload
systemctl restart gpm

echo -e "\nConsole mouse configuration completed!\n"


Apache/2.4.62 (Debian) Server at ulfs.org Port 443