1
0
Fork 0
mirror of https://gitlab.com/niansa/magicwrap.git synced 2025-03-06 20:48:30 +01:00

Minor improvements

This commit is contained in:
niansa 2021-03-22 15:57:35 +01:00
parent b6b96187ea
commit eb114387c7
6 changed files with 14 additions and 7 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
modules/data/jailedcfg/etc
modules/data/jailedcfg/var

View file

@ -1,6 +1,8 @@
cat 'config/base.sh'
#cat 'config/advdirs.sh'
cat 'config/jailedcfg.sh'
#cat 'config/jailedcfg-adv.sh'
cat 'config/essentialcfg.sh'
#cat 'config/sharedfs.sh'
#cat 'config/fakeroot.sh'
#cat 'config/control.sh'

View file

@ -1,7 +1,7 @@
--ro-bind /etc/alternatives /orig/etc/alternatives \
--ro-bind /etc/ssl /orig/etc/ssl \
--ro-bind /etc/issue /orig/etc/issue \
--ro-bind /etc/issue.net /orig/etc/issue.net \
--ro-bind /etc/os-release /orig/etc/os-release \
--ro-bind-try /etc/alternatives /orig/etc/alternatives \
--ro-bind-try /etc/ssl /orig/etc/ssl \
--ro-bind-try /etc/issue /orig/etc/issue \
--ro-bind-try /etc/issue.net /orig/etc/issue.net \
--ro-bind-try /etc/os-release /orig/etc/os-release \
--tmpfs /orig/var/log \
--tmpfs /orig/var/tmp \

View file

@ -28,6 +28,8 @@ debugout 'I: Executing shell...'
export HOME="/home/user"
export USER="$(whoami)"
cd
. ~/.profile
if [ -e ~/.profile ]; then
. ~/.profile
fi
rm $0
exec $passed

View file

@ -2,6 +2,7 @@
#. 'init/fakeroot.sh'
. 'init/jailedcfg.sh'
#. 'init/sharedfs.sh'
#. 'init/sharedfs-adv.sh'
#. 'init/graphical.sh'
#. 'init/control.sh'
. "$mwcinit"

2
mw.sh
View file

@ -1,4 +1,4 @@
#! /bin/bash
##! /bin/bash
#FUNCTIONS
cleanup () {