Last change
on this file since 3008 was
3008,
checked in by joamuran, 4 years ago
|
release 2.5.3, see changelog
|
-
Property svn:executable set to
*
|
File size:
892 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 | |
---|
14 | # Set chroot |
---|
15 | chroot="/opt/ltsp/$1" |
---|
16 | |
---|
17 | touch /tmp/.lmd-editing-chroot |
---|
18 | |
---|
19 | # Mount some stuff |
---|
20 | mount -o bind /proc $chroot/proc |
---|
21 | mount -o bind /sys $chroot/sys |
---|
22 | mount -o bind /dev $chroot/dev |
---|
23 | mount -t devpts devpts $chroot/dev/pts |
---|
24 | mount -o bind /etc/hosts $chroot/etc/hosts |
---|
25 | mount -o bind /etc/ld.so.conf.d $chroot/etc/ld.so.conf.d |
---|
26 | mount -o bind /etc/nsswitch.conf $chroot/etc/nsswitch.conf |
---|
27 | |
---|
28 | # Launch aweome-script on client |
---|
29 | linux32 chroot $chroot /usr/sbin/mate-ltsp-desktop.sh |
---|
30 | |
---|
31 | |
---|
32 | # Umnount anything |
---|
33 | umount -l $chroot/proc |
---|
34 | umount -l $chroot/sys |
---|
35 | umount -l $chroot/dev/pts |
---|
36 | umount -l $chroot/dev |
---|
37 | umount -l $chroot/etc/hosts |
---|
38 | umount -l $chroot/etc/ld.so.conf.d |
---|
39 | umount -l $chroot/etc/nsswitch.conf |
---|
40 | |
---|
41 | rm /tmp/.lmd-editing-chroot |
---|
Note: See
TracBrowser
for help on using the repository browser.