OSDN Git Service

better internet check
[instantos/instantOS.git] / userinstall.sh
index 41b3579..6612c45 100755 (executable)
@@ -4,7 +4,7 @@
 ## installs all instantOS tools            ##
 #############################################
 
-cd
+cd || echo "ERROR: could not go to HOME"
 echo "installing instantOS tools"
 
 # laptop specific stuff
@@ -27,7 +27,16 @@ if lsusb | grep -iq 'bluetooth'; then
     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