OSDN Git Service

gen instantmouse
[instantos/instantOS.git] / userinstall.sh
1 #!/usr/bin/env bash
2
3 #############################################
4 ## installs all instantOS tools            ##
5 #############################################
6
7 cd
8 echo "installing instantOS tools"
9
10 # laptop specific stuff
11 if acpi | grep -q '[0-9]%' &>/dev/null; then
12     # config file to indicate being a laptop
13     echo "device appears to be a laptop"
14     iconf -i islaptop 1
15 fi
16
17 # needed for nm-applet start
18 if lspci | grep -Eiq '(wifi|wireless)'; then
19     echo "device has wifi capabilities"
20     iconf -i haswifi 1
21 fi
22
23 # needed to disable bluetooth service
24 if lsusb | grep -iq 'bluetooth'; then
25     echo "device has bluetooth"
26     iconf -i hasbluetooth 1
27 fi
28
29 instantmouse gen