OSDN Git Service

better internet check
[instantos/instantOS.git] / userinstall.sh
index 0e2a578..6612c45 100755 (executable)
@@ -4,11 +4,11 @@
 ## installs all instantOS tools            ##
 #############################################
 
-cd
+cd || echo "ERROR: could not go to HOME"
 echo "installing instantOS tools"
 
 # laptop specific stuff
-if acpi | grep -q '[0-9]%' &>/dev/null; then
+if acpi | grep -q '.' &>/dev/null; then
     # config file to indicate being a laptop
     echo "device appears to be a laptop"
     iconf -i islaptop 1
@@ -18,6 +18,7 @@ fi
 if lspci | grep -Eiq '(wifi|wireless)'; then
     echo "device has wifi capabilities"
     iconf -i haswifi 1
+    iconf -i wifiapplet 1
 fi
 
 # needed to disable bluetooth service
@@ -25,3 +26,17 @@ if lsusb | grep -iq 'bluetooth'; then
     echo "device has bluetooth"
     iconf -i hasbluetooth 1
 fi
+
+# change some behaviour like light for setting brightness
+if iconf -r hasnvidia
+then
+    iconf -i hasnvidia 1
+    iconf -i uselight 1
+fi
+
+instantmouse gen
+
+mkdir ~/instantos
+mkdir -p ~/.config/instantos
+
+iconf -i userinstall 1