Commit graph

18 commits

Author SHA1 Message Date
Dave Woodfall
919b08049e Fix break error messages. 2021-04-05 06:47:51 +00:00
Dave Woodfall
19c9fc0d9b new-config dialog
One extra prompt at end to stop file list flying off top of screen.
Calculate lines in K/O/R/P prompt before printing it, and use it to
work out screen MAXROWS etc.
2021-02-23 01:04:47 +00:00
Dave Woodfall
2cd5131e83 Fix new-config dialog 2021-02-20 23:51:59 -06:00
Dave Woodfall
2cae1aa0af Adjust number of .new lines shown based on terminal size
Signed-off-by: Robby Workman <rworkman@slackware.com>
2018-11-20 01:37:14 -06:00
Dave Woodfall
8ff792f2ef Add support for listing .new files without PAGER
Signed-off-by: Robby Workman <rworkman@slackware.com>
2018-11-18 00:07:54 -06:00
Darren Austin
a805617e81 Add config option to allow *not* saving .orig configs
When admins choose to allow slackpkg new-config to overwrite
currently installed config files with the .new counterparts
from an upgraded package, slackpkg has traditionally created
backups of the config files first, with the backups being
written out with .orig extensions. This commit does not change
the default behavior, but it does allow it to be turned off.

TLDR: set "ORIG_BACKUPS" to "off" in /etc/slackpkg/slackpkg.conf
      if you do not wish to have .orig files left over

Signed-off-by: Robby Workman <rworkman@slackware.com>
2018-09-19 23:21:58 -05:00
Mario Preksavec
24ec5a28f8 Clarify that a press of "Enter" is needed to confirm kernel change
Signed-off-by: Robby Workman <rworkman@slackware.com>
2018-06-20 01:27:04 -05:00
Robby Workman
b77f5bd5ee post-functions.sh: Tweak handling of new kernel prompts 2018-04-04 02:13:53 -05:00
Robby Workman
80c5dc16dd post-functions.sh: Fix stray stuff in vimdiff prompt 2018-04-03 20:03:42 -05:00
Robby Workman
5d66c7cc39 post-functions.sh: Sort .new files list from looknew()
Thanks to Eduard Rozenberg.
2018-04-03 19:31:02 -05:00
Robby Workman
2cb98319cb post-functions.sh: Make sure user confirms kernel update 2018-04-03 19:19:18 -05:00
Robby Workman
b55bfd9645 post-functions.sh: Respect $ROOT in looknew()
Thanks again to burdi01 on LQ.
2018-04-03 19:14:27 -05:00
Robby Workman
caf6a1ab96 post-functions.sh: Don't offer to run lilo if initrd is in lilo.conf 2018-01-07 00:12:05 -06:00
Robby Workman
14ce3da94e post-functions.sh: Invert test for "not no" to "is yes"
Essentially, don't process a "not yes" as an "is yes"
2018-01-06 17:35:22 -06:00
Robby Workman
8c6d8b9947 post-functions.sh: check for /etc/lilo.conf too for lilo offer
Existence of /etc/lilo.conf coupled with executable /sbin/lilo
probably indicates lilo usage on the system, so that seems like
a reasonable compromise for everyone fussing about slackpkg's
offer to run /sbin/lilo for them after kernel upgrades even
though they use grub or whatever else.
2018-01-06 17:33:02 -06:00
David Allen
c73041dff2 post-functions.sh: Fix vimdiff patch
** This was my mistake; my mail client munged the patch, so
   I had to apply it all by hand. The extra (old) line of
   'showmenu' options was what I'd copied to compare the
   new options, and I forgot to delete it when committing.
   Mea culpa.  --rworkman
2017-11-08 22:01:22 -06:00
David Allen
98c8ffda23 Allow using vimdiff to compare .new and original files
Signed-off-by: Robby Workman <rworkman@slackware.com>
2017-10-22 01:59:53 -05:00
Robby Workman
406e0e84f5 *: Initial commit of slackpkg (as of 2.82.2 release) 2017-10-22 01:59:41 -05:00