Skip to content

Commit

Permalink
flux/_drop/clear.sh: link openbox-theme
Browse files Browse the repository at this point in the history
  • Loading branch information
huapox committed Jul 2, 2024
1 parent 735ac29 commit 7d179a4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion flux/src/_drop/clear.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ find /rootfs/usr/local/static -type f |grep -E "/sbin/|/bin/" |grep -v "/3rd/bin
du -sh $one
done

# link
# link-bin,sbin
rm -rf /rootfs/usr/bin /rootfs/usr/sbin; mkdir -p /rootfs/usr/bin /rootfs/usr/sbin;

# clear-xrdp;
Expand All @@ -43,3 +43,10 @@ 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
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");
mkdir -p $dst; rm -rf $dst;
ln -s $one /rootfs$dst #link
done

0 comments on commit 7d179a4

Please sign in to comment.