Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Honeypot
honeypot-rechner-setup
Commits
c45644fb
Commit
c45644fb
authored
Dec 05, 2017
by
Fjen Undso
Browse files
root: update user login scripts
parent
45a2923a
Changes
4
Hide whitespace changes
Inline
Side-by-side
root/gast1-mon.sh
0 → 100755
View file @
c45644fb
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
root/gast1-session.sh
View file @
c45644fb
#!/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
root/gast2-mon.sh
0 → 100755
View file @
c45644fb
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
root/gast2-session.sh
View file @
c45644fb
#!/bin/bash
#
old style
template
copy
#
rm -rf /home/gast
1
#
cp -a /home/gasttemplate /home/gast
1
#
chown -R gast
1
: /home/gast
1
#
copy
template
user data
rm
-rf
/home/gast
2
cp
-a
/home/gasttemplate /home/gast
2
chown
-R
gast
2
: /home/gast
2
# 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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment