Last change
on this file since 392 was
392,
checked in by hectorgh, 5 years ago
|
adding project files
|
-
Property svn:executable set to
*
|
File size:
888 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | # Testing parameters |
---|
4 | |
---|
5 | if [ $# -ne 1 ]; then |
---|
6 | echo "Default use: awesom-desktop.sh chroot_name" |
---|
7 | exit -1 |
---|
8 | fi |
---|
9 | |
---|
10 | if [ -e /tmp/.lmd-editing-chroot ]; then |
---|
11 | exit -1 |
---|
12 | fi |
---|
13 | # Set chroot |
---|
14 | chroot="/opt/ltsp/$1" |
---|
15 | |
---|
16 | touch /tmp/.lmd-editing-chroot |
---|
17 | |
---|
18 | # Mount some stuff |
---|
19 | mount -o bind /proc $chroot/proc |
---|
20 | mount -o bind /sys $chroot/sys |
---|
21 | mount -o bind /dev $chroot/dev |
---|
22 | mount -t devpts devpts $chroot/dev/pts |
---|
23 | mount -o bind /etc/hosts $chroot/etc/hosts |
---|
24 | mount -o bind /etc/ld.so.conf.d $chroot/etc/ld.so.conf.d |
---|
25 | mount -o bind /etc/nsswitch.conf $chroot/etc/nsswitch.conf |
---|
26 | |
---|
27 | # Launch aweome-script on client |
---|
28 | linux32 chroot $chroot /usr/sbin/awesome-desktop.sh |
---|
29 | |
---|
30 | # Umnount anything |
---|
31 | umount -l $chroot/proc |
---|
32 | umount -l $chroot/sys |
---|
33 | umount -l $chroot/dev/pts |
---|
34 | umount -l $chroot/dev |
---|
35 | umount -l $chroot/etc/hosts |
---|
36 | umount -l $chroot/etc/ld.so.conf.d |
---|
37 | umount -l $chroot/etc/nsswitch.conf |
---|
38 | |
---|
39 | rm /tmp/.lmd-editing-chroot |
---|
Note: See
TracBrowser
for help on using the repository browser.