# set up oh-my-zsh config if not existing already
instantshell &
+if ! [ iconf -i userinstall ]; then
+ bash /usr/share/instantutils/userinstall.sh
+fi
if [ -z "$ISLIVE" ]; then
+
+ if [ -e /opt/instantos/installtrigger ]; then
+ zenity --info --text "finishing installation in background" &
+ sudo instantpostinstall
+ pkill zenity
+ fi
+
cd ~/instantos
if ! iconf -i max; then
instantmonitor
autorandr instantos &
fi
- if ping google.com -c 2; then
+ if ping archlinux.org -c 2; then
onlinetrigger
else
# fall back to already installed wallpapers
instantwallpaper offline
for i in $(seq 10); do
- if ping google.com -c 2; then
+ if ping archlinux.org -c 2; then
onlinetrigger
break
else
echo "root: installing tools"
/usr/share/instantutils/rootinstall.sh
-/usr/share/instantdotfiles/rootinstall.sh
-userrun /usr/share/instantutils/userinstall.sh
instantthemes f
-
-echo "installing dotfiles"
-instantdotfiles -f root
# some apps dont need/already have notification sounds
if ! echo "$1" | grep -Eiq '(discord|spotify|thunderbird|mailspring)'; then
if ! [ -e ~/instantos/notifications/notification.ogg ]; then
- if ping -c 1 google.com; then
+ if ping -c 1 archlinux.org; then
mkdir -p ~/instantos/notifications/
wget -qO ~/instantos/notifications/notification.ogg \
"https://notificationsounds.com/notification-sounds/me-too-603/download/ogg"
--- /dev/null
+#!/bin/bash
+
+echo "finishing up installation"
+bash /root/instantARCH/postinstall.sh
+bash /usr/share/instantdotfiles/rootinstall.sh
+
+# require password for root account
+sed -i '/.*#instantosroot/d' /etc/sudoers
+rm /opt/instantos/installtrigger
#!/bin/bash
-if ! ping -c 1 google.com &>/dev/null; then
+if ! ping -c 1 archlinux.org &>/dev/null; then
echo "internet is required to upgrade instantOS"
exit 1
fi
exit
fi
-if ! ping -c 1 google.com; then
+if ! ping -c 1 archlinux.org; then
echo "internet is required"
exit
fi
# fix brightness permissions
bash /opt/instantos/menus/data/backlight.sh
+
+# set up postinstall trigger
+echo "root ALL=(ALL) NOPASSWD:ALL #instantosroot" >>/etc/sudoers
+echo "" >>/etc/sudoers
+
+mkdir -p /opt/instantos
+touch /opt/instantos/installtrigger
echo "installing instantOS tools"
# laptop specific stuff
-if acpi | grep -q '.' &> /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
iconf -i hasbluetooth 1
fi
-instantmouse gen
\ No newline at end of file
+instantmouse gen
+
+mkdir ~/instantos
+iconf -i userinstall 1