OSDN Git Service

remove old file
[instantos/instantOS.git] / rootinstall.sh
index 2bf4448..168d1b4 100755 (executable)
@@ -1,10 +1,10 @@
 #!/bin/bash
 
-######################################################
-## installs all system wide programs for instantOS  ##
-######################################################
+####################################################
+## installs all system wide tweaks for instantOS  ##
+####################################################
 
-if ! [ $(whoami) = "root" ]; then
+if ! [ "$(whoami)" = "root" ]; then
     echo "please run this as root"
     exit 1
 fi
@@ -114,7 +114,7 @@ if ! [ -e /tmp/topinstall ] && command -v plymouth-set-default-theme && ! grep -
         echo "" >>/etc/sudoers
     fi
 
-    if ! [ -e /opt/instantos/bootscreen ]; then
+    if ! [ -e /opt/instantos/bootscreen ] && [ -e /opt/instantos/realinstall ] && ! [ -e /opt/instantos/noplymouth ]; then
         echo "installing boot splash screen"
         plymouth-set-default-theme instantos
 
@@ -166,7 +166,7 @@ else
     fi
 
     # fix brightness permissions
-    bash /opt/instantos/menus/data/backlight.sh
+    bash /usr/share/instantassist/data/backlight.sh
     # set up postinstall trigger
 
     mkdir -p /opt/instantos