blob: 842d8230215143fd34cfdd8eb43319dc65cbadfa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
# Copyright (c) 2013 - OpenSLX GmbH
#
# This program is free software distributed under the GPL version 2.
# See http://openslx.org/COPYING
#
# If you have any feedback please consult http://openslx.org/feedback and
# send your feedback to feedback@openslx.org
#
# General information about OpenSLX can be found under http://openslx.org
#
# Mount local ID44 partition to /tmp after all existing stuff is preserved
#############################################################################
# Check if ID44 is available by analysing /etc/fstab for appropriate entry
if grep -qe "/dev/.*/tmp" /etc/fstab 2>/dev/null ; then
mkdir -p /run/tmp
mv /tmp/* /run/tmp
mount --move /run/mount/tmp /tmp
mv /run/tmp/* /tmp
rmdir /run/tmp
fi
|