fixes
This commit is contained in:
parent
4e81f18817
commit
6840588cd5
5 changed files with 18 additions and 18 deletions
|
@ -4,7 +4,7 @@ cd \
|
|||
.. \
|
||||
"
|
||||
|
||||
# change current directory to its parent's parent
|
||||
# change current directory to its parent’s parent
|
||||
alias ...="\
|
||||
cd \
|
||||
../.. \
|
||||
|
|
|
@ -2,7 +2,7 @@ export LS_COLORS="\
|
|||
di=0;94\
|
||||
"
|
||||
|
||||
# list current directory's entries
|
||||
# list current directory’s entries
|
||||
alias l="\
|
||||
ls \
|
||||
--all \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# display pass entry's content
|
||||
# display pass entry’s content
|
||||
alias p="\
|
||||
pass \
|
||||
"
|
||||
|
|
|
@ -1,31 +1,31 @@
|
|||
function mrc {
|
||||
mrc() {
|
||||
local container="${1}"
|
||||
local f
|
||||
for f in 'dev' 'dev/pts' 'proc' 'sys' ; do
|
||||
for f in "dev" "dev/pts" "proc" "sys" ; do
|
||||
mount --bind "/${f}" "overlay/mount/var/lib/lxc/${container}/squashfs-root/${f}"
|
||||
done
|
||||
}
|
||||
|
||||
function crc {
|
||||
crc() {
|
||||
local container="${1}"
|
||||
shift
|
||||
chroot "overlay/mount/var/lib/lxc/${container}/squashfs-root" "${@}"
|
||||
}
|
||||
|
||||
function urc {
|
||||
urc() {
|
||||
local container="${1}"
|
||||
for f in 'sys' 'proc' 'dev/pts' 'dev' ; do
|
||||
for f in "sys" "proc" "dev/pts" "dev" ; do
|
||||
umount --lazy "overlay/mount/var/lib/lxc/${container}/squashfs-root/${f}"
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
function mmc {
|
||||
mmc() {
|
||||
local container="${1}"
|
||||
mount --bind '/deb' "overlay/mount/var/lib/lxc/${container}/squashfs-root/deb"
|
||||
mount --bind "/deb" "overlay/mount/var/lib/lxc/${container}/squashfs-root/deb"
|
||||
}
|
||||
|
||||
function umc {
|
||||
umc() {
|
||||
local container="${1}"
|
||||
umount "overlay/mount/var/lib/lxc/${container}/squashfs-root/deb"
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function mo {
|
||||
mo() {
|
||||
local directory="${1}"
|
||||
local file
|
||||
if [ "${directory}" ] ; then
|
||||
|
@ -18,7 +18,7 @@ else
|
|||
fi
|
||||
}
|
||||
|
||||
function uo {
|
||||
uo() {
|
||||
cd 'overlay'
|
||||
if umount 'mount' ; then
|
||||
rmdir 'mount'
|
||||
|
@ -32,7 +32,7 @@ rmdir 'overlay'
|
|||
}
|
||||
|
||||
|
||||
function mr {
|
||||
mr() {
|
||||
for f in 'dev' 'dev/pts' 'proc' 'sys' ; do
|
||||
mount --bind "/${f}" "overlay/mount/${f}"
|
||||
done
|
||||
|
@ -49,23 +49,23 @@ chroot \
|
|||
\"overlay/mount\" \
|
||||
"
|
||||
|
||||
function ur {
|
||||
ur() {
|
||||
for f in 'sys' 'proc' 'dev/pts' 'dev' ; do
|
||||
umount --lazy "overlay/mount/${f}"
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
function mm {
|
||||
mm() {
|
||||
mount --make-rslave --rbind '/deb' 'overlay/mount/deb'
|
||||
}
|
||||
|
||||
function um {
|
||||
um() {
|
||||
umount --recursive 'overlay/mount/deb'
|
||||
}
|
||||
|
||||
|
||||
function ms {
|
||||
ms() {
|
||||
local directory="${1}"
|
||||
local level="${2}"
|
||||
if [ "${directory}" ] ; then
|
||||
|
|
Loading…
Reference in a new issue