OSDN Git Service

add postinstall
[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 '.' &>/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     iconf -i wifiapplet 1
22 fi
23
24 # needed to disable bluetooth service
25 if lsusb | grep -iq 'bluetooth'; then
26     echo "device has bluetooth"
27     iconf -i hasbluetooth 1
28 fi
29
30 instantmouse gen
31
32 mkdir ~/instantos
33 iconf -i userinstall 1