diff options
author | B. Watson <yalhcru@gmail.com> | 2020-11-20 12:59:22 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-11-22 01:14:16 +0700 |
commit | 6c237e00fe7cc8c11d1555d9aeff5fab7c918488 (patch) | |
tree | 49b7df2c4e19d5f66a52a30fd554f7d4ddd39ad9 /system/fdclone/doinst.sh | |
parent | dd62de127970f1052e3b73f21d98e8155e962d26 (diff) |
system/fdclone: Added (two-pane textmode file manager)
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/fdclone/doinst.sh')
-rw-r--r-- | system/fdclone/doinst.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/system/fdclone/doinst.sh b/system/fdclone/doinst.sh new file mode 100644 index 0000000000..35eeb79424 --- /dev/null +++ b/system/fdclone/doinst.sh @@ -0,0 +1,22 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi +} + +config etc/fdclone/fd2rc.siteconfig.new + +# If there's no fd link, take over: +if [ ! -r usr/bin/fd ]; then + ( cd usr/bin ; rm -rf fd ) + ( cd usr/bin ; ln -sf fdclone fd ) + ( cd usr/man/man1 ; rm -rf fd.1.gz ) + ( cd usr/man/man1 ; ln -sf fdclone.1.gz fd.1.gz ) + ( cd usr/man/ja/man1 ; rm -rf fd.1.gz ) + ( cd usr/man/ja/man1 ; ln -sf fdclone.1.gz fd.1.gz ) +fi |