From 03c337f91289d4f7ef06cd6afeff3ba2fa9c17ba Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 30 Oct 2024 12:25:19 +0800 Subject: [PATCH] rfs/clear.sh notes --- rootfs/src/static/clear/clear.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rootfs/src/static/clear/clear.sh b/rootfs/src/static/clear/clear.sh index 252530bd..2c9eb3c4 100644 --- a/rootfs/src/static/clear/clear.sh +++ b/rootfs/src/static/clear/clear.sh @@ -1,7 +1,7 @@ #!/bin/bash cur=$(cd "$(dirname "$0")"; pwd) -# clear +# clear ########################################### cat $cur/usr-local-static-dir.txt |grep -Ev "^#|^$" |while read one; do rm -rf /rootfs/$one done @@ -9,7 +9,7 @@ cat $cur/*file*.txt |grep -Ev "^#|^$" |while read one; do rm -f /rootfs/$one done -# upx +# upx ########################################### ln -s /rootfs/usr/local/static/3rd/bin/upx /bin/upx upx -V # root@tenvm2:/usr/local/static/3rd# tree -h @@ -28,7 +28,7 @@ find /rootfs/usr/local/static -type f |grep -E "/sbin/|/bin/" |grep -v "/3rd/bin du -sh $one done -# link-bin,sbin +# link-bin,sbin ########################################### rm -rf /rootfs/usr/bin /rootfs/usr/sbin; mkdir -p /rootfs/usr/bin /rootfs/usr/sbin; # clear-xrdp; @@ -43,7 +43,7 @@ done find /rootfs/usr/local/static -type f |grep "/bin/" |sort | \ while read one; do ls -lh $one; one2=$(echo $one|sed "s^/rootfs^^g"); ln -s $one2 /rootfs/usr/bin/; done; -# link-openbox-theme +# link-openbox-theme ########################################### find /rootfs/usr/local/static/openbox/share/ -type d |grep openbox-3 |while read one; do one=$(echo $one |sed "s^/rootfs^^g"); dst=$(echo $one |sed "s^local/static/openbox/^^g");