Black Hole
May contain traces of nut
I'm sure it means everything to those "in the know", and I realise the likes of the following is probably a dump from some kind of automatic differences process, but in detail - how does one interpret these lines, and how would one implement the specified changes (manually with a text editor, presumably)? EG (from https://hummy.tv/forum/threads/yout...com-or-other-video-platforms.8462/post-122500):
OK, so the first two lines are probably the 'before' and 'after' files. We then have some gobbledygook prefixed "@@". Then there are lines to remove prefixed "-" and lines to add prefixed "+", but the exact detail is not obvious without some guidance.
Besides implementing the changes in an editor, maybe there's a tool which can apply them automatically?
UPDATE: The syntax is documented in post 3 below, and a means to apply the described changes automatically (instead of yourself, with an editor) in post 2.
Code:
--- /mod/etc/init.d/S00swapper~
+++ /mod/etc/init.d/S00swapper
@@ -1,8 +1,7 @@
#!/bin/sh
-[ "`cat /etc/model`" = "HDR" ] || exit 0
-
swapfile=/mnt/hd3/.swap0
+[ "`cat /etc/model`" = "HD" ] && swapfile=/media/drive1/.swap0
case "$1" in
start)
OK, so the first two lines are probably the 'before' and 'after' files. We then have some gobbledygook prefixed "@@". Then there are lines to remove prefixed "-" and lines to add prefixed "+", but the exact detail is not obvious without some guidance.
Besides implementing the changes in an editor, maybe there's a tool which can apply them automatically?
UPDATE: The syntax is documented in post 3 below, and a means to apply the described changes automatically (instead of yourself, with an editor) in post 2.
Last edited: