source: lmd/trunk/fuentes/lmd-server.install/usr/share/lmd-scripts/mate-ltsp-desktop.sh @ 3085

Last change on this file since 3085 was 3085, checked in by joamuran, 4 years ago

New Release with bug fixes

  • Property svn:executable set to *
File size: 1009 bytes
RevLine 
[3008]1#!/bin/bash
2
3# Testing parameters
4
5if [ $# -ne 1  ]; then
6   echo  "Default use: awesom-desktop.sh chroot_name"
7   exit -1
8fi
9
10if [ -e  /tmp/.lmd-editing-chroot ]; then
11        exit -1
12fi
13
14# Set chroot
15chroot="/opt/ltsp/$1"
16
17touch /tmp/.lmd-editing-chroot
18
19# Mount some stuff
20mount -o bind /proc $chroot/proc
21mount -o bind /sys $chroot/sys
22mount -o bind /dev $chroot/dev
23mount -t devpts devpts $chroot/dev/pts
24mount -o bind /etc/hosts $chroot/etc/hosts
25mount -o bind /etc/ld.so.conf.d $chroot/etc/ld.so.conf.d
26mount -o bind /etc/nsswitch.conf $chroot/etc/nsswitch.conf
27
28# Launch aweome-script on client
[3085]29#linux32 chroot $chroot /usr/sbin/mate-ltsp-desktop.sh
30if [ $3 = "amd64"  ]; then
31        linux64 chroot $chroot $command
32else
33        linux32 chroot $chroot $command
34fi
[3008]35
36
[3085]37
[3008]38# Umnount anything
39umount -l $chroot/proc
40umount -l $chroot/sys
41umount -l $chroot/dev/pts
42umount -l $chroot/dev
43umount -l $chroot/etc/hosts
44umount -l $chroot/etc/ld.so.conf.d
45umount -l $chroot/etc/nsswitch.conf
46
47rm /tmp/.lmd-editing-chroot
Note: See TracBrowser for help on using the repository browser.