Commit c45644fb authored by Fjen Undso's avatar Fjen Undso
Browse files

root: update user login scripts

parent 45a2923a
set -x
#Luma Cont R G B
BUS=(0x10 0x12 0x16 0x18 0x1a)
VAL=(60 70 98 97 98)
for i in ${!BUS[*]}; do
ddccontrol dev:/dev/i2c-7 -r ${BUS[$i]} -w ${VAL[$i]}
done
#!/bin/bash
# old style template copy
#rm -rf /home/gast1
#cp -a /home/gasttemplate /home/gast1
#chown -R gast1: /home/gast1
# copy template user data
rm -rf /home/gast1
cp -a /home/gasttemplate /home/gast1
chown -R gast1: /home/gast1
# clean guest overlayfs
# unmount and mount, because random shit can happen
umount /home/gast1
rm -r /home/gast1.writable/* /home/gast1.writable/.[!.]* /home/gast1.writable/..?* || true
mount /home/gast1
chown gast1: /home/gast1/.PlayOnLinux/wineprefix/battlenet
# set monitor settings
/root/gast1-mon.sh
set -x
#Luma Cont R G B
BUS=(0x10 0x12 0x16 0x18 0x1a)
VAL=(35 75 98 94 100)
for i in ${!BUS[*]}; do
ddccontrol dev:/dev/i2c-12 -r ${BUS[$i]} -w ${VAL[$i]}
done
#!/bin/bash
# old style template copy
#rm -rf /home/gast1
#cp -a /home/gasttemplate /home/gast1
#chown -R gast1: /home/gast1
# copy template user data
rm -rf /home/gast2
cp -a /home/gasttemplate /home/gast2
chown -R gast2: /home/gast2
# clean guest overlayfs
# unmount and mount, because random shit can happen
umount /home/gast2
rm -r /home/gast2.writable/* /home/gast2.writable/.[!.]* /home/gast2.writable/..?* || true
mount /home/gast2
chown gast2: /home/gast2/.PlayOnLinux/wineprefix/battlenet
# set monitor settings
/root/gast2-mon.sh
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment