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 ...="\
|
alias ...="\
|
||||||
cd \
|
cd \
|
||||||
../.. \
|
../.. \
|
||||||
|
|
|
@ -2,7 +2,7 @@ export LS_COLORS="\
|
||||||
di=0;94\
|
di=0;94\
|
||||||
"
|
"
|
||||||
|
|
||||||
# list current directory's entries
|
# list current directory’s entries
|
||||||
alias l="\
|
alias l="\
|
||||||
ls \
|
ls \
|
||||||
--all \
|
--all \
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# display pass entry's content
|
# display pass entry’s content
|
||||||
alias p="\
|
alias p="\
|
||||||
pass \
|
pass \
|
||||||
"
|
"
|
||||||
|
|
|
@ -1,31 +1,31 @@
|
||||||
function mrc {
|
mrc() {
|
||||||
local container="${1}"
|
local container="${1}"
|
||||||
local f
|
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}"
|
mount --bind "/${f}" "overlay/mount/var/lib/lxc/${container}/squashfs-root/${f}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
function crc {
|
crc() {
|
||||||
local container="${1}"
|
local container="${1}"
|
||||||
shift
|
shift
|
||||||
chroot "overlay/mount/var/lib/lxc/${container}/squashfs-root" "${@}"
|
chroot "overlay/mount/var/lib/lxc/${container}/squashfs-root" "${@}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function urc {
|
urc() {
|
||||||
local container="${1}"
|
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}"
|
umount --lazy "overlay/mount/var/lib/lxc/${container}/squashfs-root/${f}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function mmc {
|
mmc() {
|
||||||
local container="${1}"
|
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}"
|
local container="${1}"
|
||||||
umount "overlay/mount/var/lib/lxc/${container}/squashfs-root/deb"
|
umount "overlay/mount/var/lib/lxc/${container}/squashfs-root/deb"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
function mo {
|
mo() {
|
||||||
local directory="${1}"
|
local directory="${1}"
|
||||||
local file
|
local file
|
||||||
if [ "${directory}" ] ; then
|
if [ "${directory}" ] ; then
|
||||||
|
@ -18,7 +18,7 @@ else
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function uo {
|
uo() {
|
||||||
cd 'overlay'
|
cd 'overlay'
|
||||||
if umount 'mount' ; then
|
if umount 'mount' ; then
|
||||||
rmdir 'mount'
|
rmdir 'mount'
|
||||||
|
@ -32,7 +32,7 @@ rmdir 'overlay'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function mr {
|
mr() {
|
||||||
for f in 'dev' 'dev/pts' 'proc' 'sys' ; do
|
for f in 'dev' 'dev/pts' 'proc' 'sys' ; do
|
||||||
mount --bind "/${f}" "overlay/mount/${f}"
|
mount --bind "/${f}" "overlay/mount/${f}"
|
||||||
done
|
done
|
||||||
|
@ -49,23 +49,23 @@ chroot \
|
||||||
\"overlay/mount\" \
|
\"overlay/mount\" \
|
||||||
"
|
"
|
||||||
|
|
||||||
function ur {
|
ur() {
|
||||||
for f in 'sys' 'proc' 'dev/pts' 'dev' ; do
|
for f in 'sys' 'proc' 'dev/pts' 'dev' ; do
|
||||||
umount --lazy "overlay/mount/${f}"
|
umount --lazy "overlay/mount/${f}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function mm {
|
mm() {
|
||||||
mount --make-rslave --rbind '/deb' 'overlay/mount/deb'
|
mount --make-rslave --rbind '/deb' 'overlay/mount/deb'
|
||||||
}
|
}
|
||||||
|
|
||||||
function um {
|
um() {
|
||||||
umount --recursive 'overlay/mount/deb'
|
umount --recursive 'overlay/mount/deb'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function ms {
|
ms() {
|
||||||
local directory="${1}"
|
local directory="${1}"
|
||||||
local level="${2}"
|
local level="${2}"
|
||||||
if [ "${directory}" ] ; then
|
if [ "${directory}" ] ; then
|
||||||
|
|
Loading…
Reference in a new issue