2023-01-31 09:52:15 +04:00
|
|
|
# use it with
|
|
|
|
# ./create_fs_json.php -d fs -ofs.json
|
2023-01-31 08:47:50 +04:00
|
|
|
# or // are for comments
|
2023-01-31 09:52:15 +04:00
|
|
|
#########################
|
|
|
|
# #
|
|
|
|
# specific for our mooc #
|
|
|
|
# #
|
|
|
|
#########################
|
2023-01-31 08:47:50 +04:00
|
|
|
# rename file1 to file2
|
|
|
|
rename home/alice/bashrc home/alice/.bashrc
|
|
|
|
rename home/alice/bash_history home/alice/.bash_history
|
|
|
|
# change uid
|
|
|
|
herit uid from: home/alice 1000
|
|
|
|
herit uid from: home/bob 1001
|
|
|
|
# change gid
|
|
|
|
herit gid from: home/alice 1000
|
|
|
|
herit gid from: home/bob 1000
|
2023-01-31 09:52:15 +04:00
|
|
|
# don't use usr/script.old folder (and all files in)
|
|
|
|
ignore dir usr/script.old_20191010
|
|
|
|
ignore dir usr/script/old
|
|
|
|
forcemod dir usr/script 100755
|
|
|
|
forcemod file usr/script/libeval.sh 100644
|
|
|
|
forcemod dir usr/script/data 100644
|
|
|
|
forcemod dir home/alice/Sequence2/A24 100755
|
|
|
|
forcemod file home/alice/Sequence4/A42/fich1 100464
|
|
|
|
#
|
|
|
|
######################################
|
|
|
|
# #
|
|
|
|
# Generic for the (minimal) weblinux #
|
|
|
|
# #
|
|
|
|
######################################
|
2023-01-31 08:47:50 +04:00
|
|
|
# don't use all .foo & .DS_Store files
|
|
|
|
ignore file .foo
|
|
|
|
ignore file .DS_Store
|
|
|
|
# force mod for all files in a directory
|
|
|
|
forcemod dir usr/bin 100755
|
|
|
|
forcemod dir usr/sbin 100755
|
|
|
|
forcemod dir sbin 100755
|
|
|
|
# necessary for gcc use
|
|
|
|
forcemod dir usr/local/libexec/gcc/or1k-linux-musl/4.9.1 100755
|
|
|
|
# force libc.so to be executable
|
|
|
|
forcemod file usr/lib/libc.so 100755
|
|
|
|
# fichiers executables utiles ?
|
|
|
|
|
|
|
|
# force link if not exist in the real filesystem
|
|
|
|
# whereToPutTheLink DestinationOfTheLink
|
|
|
|
mklink usr/bin/bash bash-4.4.18
|
|
|
|
mklink lib/ld-musl-or1k.so.1 /usr/lib/libc.so
|
|
|
|
mklink lib/libudev.so.1 libudev.so.1.3.0
|
|
|
|
mklink usr/bin/ld ld.bfd
|
|
|
|
mklink usr/bin/gtbl tbl
|
|
|
|
mklink usr/bin/ldd /usr/lib/libc.so
|
|
|
|
mklink usr/lib/libatomic.so libatomic.so.1.1.0
|
|
|
|
mklink usr/lib/libatomic.so.1 libatomic.so.1.1.0
|
|
|
|
mklink usr/lib/libbfd.so libbfd-2.24.51.20140817.so
|
|
|
|
mklink usr/lib/libcrypto.so libcrypto.so.1.1
|
|
|
|
mklink usr/lib/libcurl.so libcurl.so.4.3.0
|
|
|
|
mklink usr/lib/libcurl.so.4 libcurl.so.4.3.0
|
|
|
|
mklink usr/lib/libcurses.so libncurses.so.5.9
|
|
|
|
mklink usr/lib/libevent-2.1.so.6 libevent-2.1.so.6.0.2
|
|
|
|
mklink usr/lib/libevent.so libevent-2.1.so.6.0.2
|
|
|
|
mklink usr/lib/libevent_core-2.1.so.6 libevent_core-2.1.so.6.0.2
|
|
|
|
mklink usr/lib/libevent_core.so libevent_core-2.1.so.6.0.2
|
|
|
|
mklink usr/lib/libevent_extra-2.1.so.6 libevent_extra-2.1.so.6.0.2
|
|
|
|
mklink usr/lib/libevent_extra.so libevent_extra-2.1.so.6.0.2
|
|
|
|
mklink usr/lib/libevent_openssl.so libevent_openssl-2.1.so.6.0.2
|
|
|
|
mklink usr/lib/libevent_pthreads-2.1.so.6 libevent_pthreads-2.1.so.6.0.2
|
|
|
|
mklink usr/lib/libevent_pthreads.so libevent_pthreads-2.1.so.6.0.2
|
|
|
|
mklink usr/lib/libgcc_s.so libgcc_s.so.1
|
|
|
|
mklink usr/lib/libgdbm.so libgdbm.so.4.0.0
|
|
|
|
mklink usr/lib/libgdbm.so.4 libgdbm.so.4.0.0
|
|
|
|
mklink usr/lib/libinput.so libinput.so.5.0.0
|
|
|
|
mklink usr/lib/libinput.so.5 libinput.so.5.0.0
|
|
|
|
mklink usr/lib/libjpeg.so libjpeg.so.8.0.2
|
|
|
|
mklink usr/lib/libjpeg.so.8 libjpeg.so.8.0.2
|
|
|
|
mklink usr/lib/liblua.so liblua.so.5.2.3
|
|
|
|
mklink usr/lib/liblua.so.5.2 liblua.so.5.2.3
|
|
|
|
mklink usr/lib/libmagic.so libmagic.so.1.0.0
|
|
|
|
mklink usr/lib/libmagic.so.1 libmagic.so.1.0.0
|
|
|
|
mklink usr/lib/libmenu.so libmenu.so.5.9
|
|
|
|
mklink usr/lib/libmenu.so.5 libmenu.so.5.9
|
|
|
|
mklink usr/lib/libmikmod.so libmikmod.so.3.3.0
|
|
|
|
mklink usr/lib/libmikmod.so.3 libmikmod.so.3.3.0
|
|
|
|
mklink usr/lib/libmtdev.so libmtdev.so.1.0.0
|
|
|
|
mklink usr/lib/libmtdev.so.1 libmtdev.so.1.0.0
|
|
|
|
mklink usr/lib/libncurses.so libncurses.so.5.9
|
|
|
|
mklink usr/lib/libncurses.so.5 libncurses.so.5.9
|
|
|
|
mklink usr/lib/libopcodes.so libopcodes-2.24.51.20140817.so
|
|
|
|
mklink usr/lib/libssl.so libssl.so.1.1
|
|
|
|
mklink usr/lib/libstdc++.so libstdc++.so.6.0.20
|
|
|
|
mklink usr/lib/libstdc++.so.6 libstdc++.so.6.0.20
|
|
|
|
mklink usr/lib/libz.so libz.so.1.2.8
|
|
|
|
mklink usr/lib/libz.so.1 libz.so.1.2.8
|
|
|
|
mklink usr/sbin/perl /usr/bin/perl
|
|
|
|
|
|
|
|
mklink usr/libexec /usr/local/libexec
|
2023-01-31 09:52:15 +04:00
|
|
|
mklink /usr/local/libexec/sudo/libsudo_util.so.0 libsudo_util.so.0.0.0
|
|
|
|
mklink /usr/local/libexec/sudo/libsudo_util.so libsudo_util.so.0.0.0
|
2023-01-31 08:47:50 +04:00
|
|
|
|
|
|
|
mklink usr/share/man/man1/awk.1.gz gawk.1.gz
|
|
|
|
|