git: rcorder(8): Import rcorder-visualize.sh from FreeBSD

2020-02-15 Thread Aaron LI
commit c20ee1bc4749369da7c9c231b6f763198ff5882c Author: Aaron LI Date: Sat Feb 15 15:56:21 2020 +0800 rcorder(8): Import rcorder-visualize.sh from FreeBSD This script draws the dependency graph for rc scripts using dot(1). This script was imported to FreeBSD from NetBSD

git: mtree.8: Add examples to create /var and /usr/include hierarchies

2020-02-14 Thread Aaron LI
commit a836d3cf651ee4ecb8342886cb5442ae5e944d9a Author: Aaron LI Date: Sat Feb 15 15:44:17 2020 +0800 mtree.8: Add examples to create /var and /usr/include hierarchies These two examples are actually used in the Makefiles and installer. While there, fix a markup

git: DragonFly_RELEASE_5_6 psm - Add Elantech touchpad IC type 15 found on Thinkpad L480 laptops

2019-12-12 Thread Aaron LI
commit f192cedc7189b14a2c95f4a5cc1a2fb85c613fd9 Author: Matthew Dillon Date: Tue Dec 10 17:30:53 2019 -0800 psm - Add Elantech touchpad IC type 15 found on Thinkpad L480 laptops * Add support for thinkpad L480 laptops. Suggested-by: aly Taken-from: FreeBSD Summary

git: nos-tun(8): Directly use /dev/tun and remove option '-t'

2019-11-10 Thread Aaron LI
commit d60b57ae5111a02effa885210327809ad19eb0d1 Author: Aaron LI Date: Thu Aug 30 21:05:50 2018 +0800 nos-tun(8): Directly use /dev/tun and remove option '-t' Update nos-tun(8) to directly use /dev/tun instead of the pre-created /dev/tunX devices. Therefore, the option '-t

git: if_tap: Handle 'SIOCSIFMTU' ioctl directly to support MTU > 1500

2019-11-10 Thread Aaron LI
commit 4bbbd8e095115472b0d89a15256367db0ab2cc86 Author: Aaron LI Date: Sun Nov 10 17:28:52 2019 +0800 if_tap: Handle 'SIOCSIFMTU' ioctl directly to support MTU > 1500 Add the SIOCSIFMTU ioctl handling directly to tap(4) permitting it to have its MTU set higher than 1

git: tools/wesside: Update to use /dev/tap directly

2019-11-10 Thread Aaron LI
commit 437a3baf4cd5d1c2d2b65f82b3af69c549ea02eb Author: Aaron LI Date: Thu Aug 30 21:09:54 2018 +0800 tools/wesside: Update to use /dev/tap directly Use the autocloner /dev/tap instead of relying upon pre-created (and hard-coded) /dev/tap3. Summary of changes: tools/tools

git: calendar(1): Improve UTC offset and longitude handling

2019-11-09 Thread Aaron LI
commit 04c78042a4d24301e1b9889e67dd2fda5102f0d4 Author: Aaron LI Date: Tue Nov 5 23:24:10 2019 +0800 calendar(1): Improve UTC offset and longitude handling Refactor the code that deals with the UTC offset into a separate function 'get_utcoffset()'. Meanwhile, allow

git: calendar(1): Rework calendar files installation

2019-11-09 Thread Aaron LI
commit 675224d2580a27ae459048fb4a58ef3cd1dfb251 Author: Aaron LI Date: Mon Feb 18 09:17:31 2019 +0800 calendar(1): Rework calendar files installation Switch the installation of calendar files to use FILES and SYMLINKS instead of bare install(1). Also explicitly list each

git: calendar(1): Use login caps for 'calendar -a'

2019-11-09 Thread Aaron LI
commit f8b849d1082177cbfa11f941feeeced54815dc56 Author: Aaron LI Date: Sat Nov 9 21:49:18 2019 +0800 calendar(1): Use login caps for 'calendar -a' * Use 'fork()' and 'setusercontext(LOGIN_SETALL)' for every user. With this change, the complex function 'cal()' that parses

git: calendar(1): Significant update to calendars from OpenBSD

2019-11-09 Thread Aaron LI
commit ce2bfbaea2f17fce6172d6e50fea5f4a59ff43ea Author: Aaron LI Date: Thu Oct 31 23:44:04 2019 +0800 calendar(1): Significant update to calendars from OpenBSD * The calendars were obtained from OpenBSD as of 2019-02-19 * Generally, OpenBSD has more entries and more accurate

git: calendar(1): Use UTF-8 for all calendars

2019-11-09 Thread Aaron LI
commit 50c43034196417b4380dc255b9df195e1cf4c4f5 Author: Aaron LI Date: Mon Feb 18 13:12:52 2019 +0800 calendar(1): Use UTF-8 for all calendars Remove 'pt_BR.ISO8859-1' and 'ru_RU.KOI8-R' since their UTF-8 version already exist. Convert the following calendars to UTF

git: calendar(1): Various cleanups

2019-11-09 Thread Aaron LI
commit cd0cff3392ab64e19edd6ec29b179fa96f4c556c Author: Aaron LI Date: Tue Nov 5 23:23:06 2019 +0800 calendar(1): Various cleanups * Mostly style cleanups. * Use 'bool' when more appropriate. * Staticize several functions and variables to clean up 'calendar.h'. Summary

git: calendar(1): Define "LANG" for national calendars

2019-11-09 Thread Aaron LI
commit 68268a17ae368372e334c15c51042786a4b3ed6d Author: Aaron LI Date: Sun Nov 10 12:43:14 2019 +0800 calendar(1): Define "LANG" for national calendars Similar to the other national calendars in 'calendars/*.UTF-8' directories. Summary of changes: usr.bi

git: calendar(1): Add '-h' and '-?' to show usage help

2019-11-09 Thread Aaron LI
commit ec2ffd9d0928e1bd32a7d525e5df676b4f9318a6 Author: Aaron LI Date: Wed Nov 6 22:19:59 2019 +0800 calendar(1): Add '-h' and '-?' to show usage help Summary of changes: usr.bin/calendar/calendar.1 | 5 - usr.bin/calendar/calendar.c | 4 +++- 2 files changed, 7 insertions(+), 2

git: calendar(1): Remove redundant fr_FR.UTF-8/calendar.french

2019-11-09 Thread Aaron LI
commit 65d7c1d9e514f3abda01758d24b643468d4690ed Author: Aaron LI Date: Mon Feb 18 13:30:35 2019 +0800 calendar(1): Remove redundant fr_FR.UTF-8/calendar.french Summary of changes: Makefile_upgrade.inc | 1 + usr.bin/calendar/Makefile

git: calendar(1): Remove pointless playing with LC_TIME

2019-11-09 Thread Aaron LI
commit f824736add16dee75b01041317a66b786fdca371 Author: Aaron LI Date: Wed Nov 6 22:53:38 2019 +0800 calendar(1): Remove pointless playing with LC_TIME Obtained-from: FreeBSD (revision 352115) https://github.com/freebsd/freebsd/commit

git: calendar(1): Do not ignore errors of setuid/setgid in '-a' mode

2019-11-09 Thread Aaron LI
commit 3a34e56dfb1697f92c7ee23ad476a2dab13e46b2 Author: Aaron LI Date: Sun Nov 3 11:30:27 2019 +0800 calendar(1): Do not ignore errors of setuid/setgid in '-a' mode Also clear the supplementary groups list up front when becoming another user, to avoid leaking any extra group

git: calendar(1): Refactor mail header composition and sending

2019-11-09 Thread Aaron LI
commit effe59f3df8e35e540b9fcbebe2295138800b16f Author: Aaron LI Date: Sun Nov 10 10:27:24 2019 +0800 calendar(1): Refactor mail header composition and sending * Use 'struct iovec header[]' to hold all mail headers, and then use writev(2) to write them into the pipe

git: calendar(1): Search calendar file in current directory first

2019-11-09 Thread Aaron LI
commit c22cba45a51e10e12de190c2d12f2628b40a9ace Author: Aaron LI Date: Sun Nov 10 11:54:44 2019 +0800 calendar(1): Search calendar file in current directory first This fixes the regression introduced in commit f8b849d1082177cbfa11f941feeeced54815dc56. Summary of changes

git: calendar(1): Merge 'pathnames.h' into 'io.c'

2019-11-09 Thread Aaron LI
commit 144b9c45ab6b862b1c9d5fc7dcd6fe0b470a0650 Author: Aaron LI Date: Sat Nov 9 22:56:57 2019 +0800 calendar(1): Merge 'pathnames.h' into 'io.c' The '_PATH_INCLUDE' is no longer an appropriate name for the system calendars at '/usr/share/calendar', because we no longer use

git: calendar(1): Sync calendars from FreeBSD

2019-11-09 Thread Aaron LI
commit 54dbcd50cdda04d13db52aea66ec46b76bb7ce15 Author: Aaron LI Date: Sun Feb 17 19:20:25 2019 +0800 calendar(1): Sync calendars from FreeBSD Update the mtree(8) entries and the man page accordingly. Summary of changes: Makefile_upgrade.inc

git: calendar(1): Merge two fixes to calendars from FreeBSD

2019-11-09 Thread Aaron LI
commit 64f6dfcff41e44c2ffc649ef15ca9516bc88b57a Author: Aaron LI Date: Wed Nov 6 22:48:11 2019 +0800 calendar(1): Merge two fixes to calendars from FreeBSD * Change the date of 'Canberra Day' https://github.com/freebsd/freebsd/commit

git: calendar(1): Sync with FreeBSD

2019-11-09 Thread Aaron LI
commit 148ae05012f30ac10fbce91110282aaaf45194e3 Author: Aaron LI Date: Sun Feb 17 23:44:21 2019 +0800 calendar(1): Sync with FreeBSD New features: * Support events that span multiple years, because of '-A', '-B' or just the three days before the end of the year

git: calendar(1): Reset locale after parsing each calendar file

2019-11-09 Thread Aaron LI
commit 008d3e667e6b0b96a22a04662cfa21f42274a913 Author: Aaron LI Date: Sun Nov 10 12:40:45 2019 +0800 calendar(1): Reset locale after parsing each calendar file This avoids that one calendar file that changed the locale by defining the "LANG") does not

git: nrelease: Support to use binary packages

2019-10-31 Thread Aaron LI
commit 632d862bfe6cdce5646d4828a0be26ee441e45c3 Author: Aaron LI Date: Sun Mar 3 21:19:11 2019 +0800 nrelease: Support to use binary packages Add the new optional target "binpkgs" to allow to use binary packages, i.e., installing them with pkg(8), instead of bui

git: cpdup(1): Check the return value of asprintf() and exit if fails

2019-10-29 Thread Aaron LI
commit 60374ee737a54737c84ce87a466edbf6457dbbda Author: Aaron LI Date: Tue Oct 29 22:52:48 2019 +0800 cpdup(1): Check the return value of asprintf() and exit if fails See also: https://github.com/DragonFlyBSD/cpdup/commit/90aee43e060104e974f623924c3dfc0a4359ceb5

git: cpdup(1): Add '-h' option and sort options in help and code

2019-10-29 Thread Aaron LI
commit 7651dbc3b90feb35888498b6f866ebd994258a5a Author: Aaron LI Date: Tue Oct 29 22:49:41 2019 +0800 cpdup(1): Add '-h' option and sort options in help and code * Add the '-h' option to show the help text * Sort options in both code and help text * Remove the redundant

git: cpdup(1): Improve the help text a bit

2019-10-29 Thread Aaron LI
commit bfb6f159461bac61dba97611ac33111accea3a9d Author: Aaron LI Date: Tue Oct 29 22:43:47 2019 +0800 cpdup(1): Improve the help text a bit * Better format the help text to be clearer. * The 'dest' argument is mandatory. See also: https://github.com/DragonFlyBSD

git: nrelease: Reorder and clean up the "srcs" target

2019-10-28 Thread Aaron LI
commit 699b6cdc9e08e831c5d9b75120c1a96d922d5b34 Author: Aaron LI Date: Sun Mar 3 20:39:35 2019 +0800 nrelease: Reorder and clean up the "srcs" target In the "customizeiso" target, ${ISOROOT}/usr/dports will be removed after installing packages, thi

git: nrelease: Remove obsolete targets and update the help

2019-10-28 Thread Aaron LI
commit aac6f66e3264dcf46d2146b19429f954b8d2b24b Author: Aaron LI Date: Sun Mar 3 20:27:17 2019 +0800 nrelease: Remove obsolete targets and update the help The optional targets "installer" and "img" are obsolete and have no effects, so just remove t

git: release.7: Sync environment variables with nrelease/Makefile

2019-10-28 Thread Aaron LI
commit 408ab0ea61a77aa94be67c5fd991f973a15381f9 Author: Aaron LI Date: Sun Mar 3 21:37:28 2019 +0800 release.7: Sync environment variables with nrelease/Makefile Remove obsolete "PKGBIN_MKISOFS" and "IMGUSBDEV". Add "GITURL_SRC", &quo

git: nrelease: Simplify by not handling multiple kernel configs

2019-10-28 Thread Aaron LI
commit 751a32470bb9b500b19b030ae39ec64965f25bb7 Author: Aaron LI Date: Sun Mar 3 15:32:08 2019 +0800 nrelease: Simplify by not handling multiple kernel configs We don't ship multiple kernels for years, so we can get rid of handling multiple kernel configs in nrelease

git: nrelease: Split "pkgs" target out from "customizeiso" target

2019-10-28 Thread Aaron LI
commit 1968392d3963dced7c5927c7dc2f11104d33e4fa Author: Aaron LI Date: Sun Mar 3 21:08:23 2019 +0800 nrelease: Split "pkgs" target out from "customizeiso" target Separate the package installation part from "customizeiso" target out into the

git: nrelease: Fix 'make restartpkgs'

2019-10-28 Thread Aaron LI
commit 333a466d07d50b9e9a62d3707df76617fb1edeac Author: Aaron LI Date: Mon Oct 28 23:39:29 2019 +0800 nrelease: Fix 'make restartpkgs' 'make restartpkgs' is broken because 'make install' would fail if the port is alreay installed. Fix this issue by executing 'make deinstall

git: rc: Move stop_boot() from rc.d/fsck to rc.subr and improve it

2019-06-21 Thread Aaron LI
commit 6f37e8f4fe831d27172ba2edd4c2a231e05315bc Author: Aaron LI Date: Fri Jun 21 23:59:37 2019 +0800 rc: Move stop_boot() from rc.d/fsck to rc.subr and improve it Move the stop_boot() function from rc.d/fsck to rc.subr, since we will use it in other rc.d scripts

git: rc.d: Use stop_boot() function to really stop boot

2019-06-21 Thread Aaron LI
commit e13ee828096647df4f100b1fe311a8f091c6b419 Author: Aaron LI Date: Sat Jun 22 00:07:06 2019 +0800 rc.d: Use stop_boot() function to really stop boot The rc.d scripts are executed in sub-shells, so the original 'exit' would not stop the boot process. Use the stop_boot

git: initrd: cd to '/' before umounting '/var'

2019-06-20 Thread Aaron LI
commit ea93a0d3af8de1636eda5e19f31a2c52de9c4524 Author: Aaron LI Date: Thu Jun 20 21:44:11 2019 +0800 initrd: cd to '/' before umounting '/var' The HOME in initrd is set to '/var/home', thus umounting '/var' may fail due to device busy, although this failure would not block

git: jail.8: Document sysctl entries jail.{allow_raw_sockets, chflags_allowed}

2019-06-18 Thread Aaron LI
commit cfa1fd397ebc24eb76c3f9bbeea574341efeabec Author: Aaron LI Date: Wed Jun 19 00:21:11 2019 +0800 jail.8: Document sysctl entries jail.{allow_raw_sockets,chflags_allowed} Meanwhile, update the description of "jail.chflags_allowed" in the code. Obtained-fro

git: jail: Implement read-only sysctl "jail.jailed"

2019-06-17 Thread Aaron LI
commit 4e558034a6febf3a5bba02db3c73eca402cd4d98 Author: Aaron LI Date: Mon Jun 17 22:05:41 2019 +0800 jail: Implement read-only sysctl "jail.jailed" Implement the read-only sysctl entry 'jail.jailed', which can be used to determine if a process is running ins

git: rconfig(8): Update usage in program and manpage

2019-06-15 Thread Aaron LI
commit ad330ab8edb7e83dce16164ecf509023ef13a21b Author: Aaron LI Date: Sun Jun 16 11:49:17 2019 +0800 rconfig(8): Update usage in program and manpage Clarify the different usages between client and server modes. Summary of changes: sbin/rconfig/rconfig.8 | 19

git: rconfig(8): Allow '.', '-' and '+' in tag names

2019-06-15 Thread Aaron LI
commit 063db479f3174a9a9add20a81493257ff0e0d565 Author: Aaron LI Date: Sun Jun 16 10:50:58 2019 +0800 rconfig(8): Allow '.', '-' and '+' in tag names Originally, tag name only allows alphabets, digits and underscore. This commit also allows tag names to have dot (.), minus

git: DragonFly_RELEASE_5_6 terminfo: Build and install st, st-16color and st-256color

2019-06-15 Thread Aaron LI
commit ddfc7e39714524088adfbfe075e3ad0b5792853b Author: Aaron LI Date: Sat Jun 15 19:51:21 2019 +0800 terminfo: Build and install st, st-16color and st-256color Support the st (simple terminal) from the suckless project: https://st.suckless.org/ Submitted

git: terminfo: Build and install st, st-16color and st-256color

2019-06-15 Thread Aaron LI
commit a0dc181b707949382a849c54149b723529b804ca Author: Aaron LI Date: Sat Jun 15 19:51:21 2019 +0800 terminfo: Build and install st, st-16color and st-256color Support the st (simple terminal) from the suckless project: https://st.suckless.org/ Submitted

git: Use NULL instead of 0 for the third argument in fts_open()

2019-06-15 Thread Aaron LI
commit d619e025ea9b7f9a4839b4f08e7de380eef22459 Author: Aaron LI Date: Sat Jun 15 18:55:11 2019 +0800 Use NULL instead of 0 for the third argument in fts_open() Bug-report: #3138 Summary of changes: bin/chmod/chmod.c | 2 +- usr.bin/chflags/chflags.c | 2 +- usr.sbin

git: libstand/hammer1: Fix vol_name to be vol_label

2019-06-14 Thread Aaron LI
commit 26c41a94dbeb0fe6979ead7963304b1e24afcb51 Author: Aaron LI Date: Sat Jun 15 13:49:38 2019 +0800 libstand/hammer1: Fix vol_name to be vol_label The 'vol_name' field in 'struct hammer_volume_ondisk' was changed to 'vol_label' in commit

git: DragonFly_RELEASE_5_6 u4b/audio: Fix panic by kfree(NULL)

2019-06-14 Thread Aaron LI
commit 75f419da903baa229834f160bd122173534d199e Author: Aaron LI Date: Sat Jun 15 13:18:36 2019 +0800 u4b/audio: Fix panic by kfree(NULL) DragonFly's kfree(9) doesn't allow a NULL pointer, while FreeBSD's free(9) allows. Reported-by: tse Bug-report: #3192

git: u4b/audio: Fix panic by kfree(NULL)

2019-06-14 Thread Aaron LI
commit b3f5eba6f618eafe64f78e2b3ad6056d72254ab5 Author: Aaron LI Date: Sat Jun 15 13:18:36 2019 +0800 u4b/audio: Fix panic by kfree(NULL) DragonFly's kfree(9) doesn't allow a NULL pointer, while FreeBSD's free(9) allows. Reported-by: tse Bug-report: #3192

git: fdisk.8: Update DragonFly slice type to 108 (6C)

2019-03-27 Thread Aaron LI
commit 4db76ef7c5dd5c0adf87c2f73c28324d9051ba0f Author: Aaron LI Date: Wed Mar 27 16:27:14 2019 +0800 fdisk.8: Update DragonFly slice type to 108 (6C) Summary of changes: sbin/fdisk/fdisk.8 | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) http://gitweb.dragonflybsd.org

git: ministat(1): Fix terminal width handling

2019-03-19 Thread Aaron LI
commit 48641519d3acf3eb3936da7989e7212a1d2b487e Author: Aaron LI Date: Wed Mar 20 13:12:52 2019 +0800 ministat(1): Fix terminal width handling ministat(1) will prefer to get the terminal width from the "COLUMNS" environment variable, in which case the plot will ove

git: Import ministat(1) from FreeBSD

2019-03-15 Thread Aaron LI
commit 3851e4b8840073d583590d8dec099ebb1eff7d77 Author: Aaron LI Date: Fri Mar 15 14:29:33 2019 +0800 Import ministat(1) from FreeBSD This utility calculates fundamental statistical properties of the input data and determines whether or not there is statistical difference

git: gpt(8): Improve "show" subcommand

2019-03-01 Thread Aaron LI
commit 7d630a11045a6f8d8c1e07321f653582a5030ea5 Author: Aaron LI Date: Sat Mar 2 10:12:13 2019 +0800 gpt(8): Improve "show" subcommand * Mark unused space with "Unused". * Catch unknown partition types and print "Unknown" * Show active M

git: gpt(8): "show" command support to print partition GUID

2019-03-01 Thread Aaron LI
commit 476d60c52528e347f500221f872ea04a9182d53a Author: Aaron LI Date: Sat Mar 2 10:17:33 2019 +0800 gpt(8): "show" command support to print partition GUID The "show" subcommand gains the "-g" option to print the partition GUID inste

git: nrelease: Minor cleanups to the Makefile

2019-02-28 Thread Aaron LI
commit 083f5c48770daf8f9471023f19eeac0e67fef42e Author: Aaron LI Date: Thu Feb 28 23:34:02 2019 +0800 nrelease: Minor cleanups to the Makefile Summary of changes: nrelease/Makefile | 38 +++--- 1 file changed, 15 insertions(+), 23 deletions(-) http

git: nrelease: More unambiguous label based on gitrev.sh

2019-02-28 Thread Aaron LI
commit 9d8dda4ab8194e673639149f695a5706cf264e5c Author: Aaron LI Date: Thu Feb 28 23:17:32 2019 +0800 nrelease: More unambiguous label based on gitrev.sh Use the git revision to compose the label to make it more unambiguous. Use the same label as the .iso volume ID

git: nrelease: Use part-by-label to identify root in .img

2019-02-28 Thread Aaron LI
commit 3ac648903e9d68df99a5051908ca1c1c8f9a651f Author: Aaron LI Date: Thu Feb 28 15:59:00 2019 +0800 nrelease: Use part-by-label to identify root in .img Previously, the DragonFly .img hardcoded "da8" as the USB device, but this may not be the case on so

git: dd(1): Sync with FreeBSD

2019-02-14 Thread Aaron LI
commit 0eeb0a9ed631ea08815777f3ff59e4e9c48dceee Author: Aaron LI Date: Fri Feb 15 00:12:06 2019 +0800 dd(1): Sync with FreeBSD Some highlights: * Add the "fillchar" operand. * Add the "speed" operand to limit the speed. * Support to specify th

git: dd(1): Rework the time interval calculation

2019-02-14 Thread Aaron LI
commit fc98fc71ea79f0e384f90814cb1a90c4e578bd9a Author: Aaron LI Date: Thu Feb 14 21:38:21 2019 +0800 dd(1): Rework the time interval calculation dd(1) uses gettimeofday(2) to compute the throughput statistics. However, gettimeofday returns the system clock, which may jump

git: dd(1): Make signal handler async safe

2019-02-14 Thread Aaron LI
commit 493fd20cdd4bfd6684d359d2e3a50826e807a71f Author: Aaron LI Date: Thu Feb 14 21:06:26 2019 +0800 dd(1): Make signal handler async safe Obtained-from: FreeBSD (revision 250469) Summary of changes: bin/dd/dd.c | 6 +- bin/dd/extern.h | 32

git: dd(1): Implement GNU's extension of "status" operand

2019-02-14 Thread Aaron LI
commit 739ce91049ab07d70253b3620f65eba5ac171cd8 Author: Aaron LI Date: Thu Feb 14 20:34:21 2019 +0800 dd(1): Implement GNU's extension of "status" operand * status=none: do not print status information * status=noxfer: do not print transfer

git: Fix pkg "-f" flag in the "make upgrade" message

2019-02-03 Thread Aaron LI
commit bc14b951506dea10a49ee271844154972fa1ffa9 Author: Aaron LI Date: Mon Feb 4 13:33:39 2019 +0800 Fix pkg "-f" flag in the "make upgrade" message Summary of changes: Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) http://gitweb.dragonflyb

git: rc.d/sysctl: Only set a sysctl when give a new value

2019-02-03 Thread Aaron LI
commit dcd3d479354e1d254b02314765c7c397b2c35ea0 Author: Aaron LI Date: Mon Feb 4 13:22:02 2019 +0800 rc.d/sysctl: Only set a sysctl when give a new value For a sysctl, compare the given value with its current value, and only update the value if the new value is different

Re: git: rc.d/sysctl: Rewrite to be more robust and clean

2019-02-01 Thread Aaron LI
Quoting Sepherosa Ziehau (2019-02-01 22:21:28) > On Fri, Feb 1, 2019 at 9:59 PM Aaron LI wrote: > > > > Quoting Sepherosa Ziehau (2019-02-01 21:33:18) > > > Please check fix this commit, there are several unexpected effects of > > > this commit: > > > -

Re: git: rc.d/sysctl: Rewrite to be more robust and clean

2019-02-01 Thread Aaron LI
Quoting Sepherosa Ziehau (2019-02-01 21:33:18) > Please check fix this commit, there are several unexpected effects of > this commit: > - Extra original value printed on the screen, when this script is run. > Before this change, a=`cmd` will not print anything on the screen. > - It looks after or

git: fgetln.3: Recommend to use the safer POSIX getline()

2019-01-16 Thread Aaron LI
commit d9c542f8684a0eebe8fc6b137676fe46b62adbca Author: Aaron LI Date: Wed Jan 16 17:00:47 2019 +0800 fgetln.3: Recommend to use the safer POSIX getline() Obtained-from: OpenBSD Summary of changes: lib/libc/stdio/fgetln.3 | 5 + 1 file changed, 5 insertions(+) http

git: fgetln.3: Add the CAVEATS section with an example

2019-01-16 Thread Aaron LI
commit 1f119bc603f4ab8f1b7c9c478b07fe95db70b499 Author: Aaron LI Date: Wed Jan 16 16:57:05 2019 +0800 fgetln.3: Add the CAVEATS section with an example Add the CAVEATS section to warn about the behavior of fgetln(). An example is included to demonstrate how to properly use

git: getline.3: Note to distinguish between error and EoF

2019-01-16 Thread Aaron LI
commit 45e55a3219a7a8f2adabfdf399af71f059cfc763 Author: Aaron LI Date: Wed Jan 16 16:51:41 2019 +0800 getline.3: Note to distinguish between error and EoF Note that the getline() and getdelim() functions do not distinguish between end-of-file and error, so the callers must

git: vkernel.7: Fix a typo and bump date

2018-12-27 Thread Aaron LI
commit f37681ee1f549d55730c32a553fef58bb28e2e82 Author: Aaron LI Date: Thu Dec 27 19:26:36 2018 +0800 vkernel.7: Fix a typo and bump date Summary of changes: share/man/man7/vkernel.7 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) http://gitweb.dragonflybsd.org

git: DragonFly_RELEASE_5_4 rc.d/varsym: Rewrite following rc.d/sysctl

2018-12-19 Thread Aaron LI
commit 2cc40610180de307151d8bde19150aa3cb7a7a1e Author: Aaron LI Date: Thu Dec 13 13:53:54 2018 +0800 rc.d/varsym: Rewrite following rc.d/sysctl * Rewrite this script following the same logic and style of rc.d/sysctl. The basic syntax is checked before setting

git: DragonFly_RELEASE_5_4 rc.d/mountcritlocal: Clean up

2018-12-19 Thread Aaron LI
commit 43ec93a0989ff29ca37c85a0158dcec8debcfe38 Author: Aaron LI Date: Fri Dec 14 22:57:51 2018 +0800 rc.d/mountcritlocal: Clean up Clean the code a bit and fix the style. Summary of changes: etc/rc.d/mountcritlocal | 31 +-- 1 file changed, 13

git: DragonFly_RELEASE_5_4 rc.d/sysctl: Rewrite to be more robust and clean

2018-12-19 Thread Aaron LI
commit 56e2ebc3560094ab6616236cb24576cf0f83ac58 Author: Aaron LI Date: Thu Dec 13 13:58:27 2018 +0800 rc.d/sysctl: Rewrite to be more robust and clean * Check the validity of the sysctl config and warn about the invalid syntax. A common mistake is that users set

git: rc.d/mountcritlocal: Clean up

2018-12-19 Thread Aaron LI
commit d2e099c85e99cce273d3f15c4a3837caa7aae5fb Author: Aaron LI Date: Fri Dec 14 22:57:51 2018 +0800 rc.d/mountcritlocal: Clean up Clean the code a bit and fix the style. Summary of changes: etc/rc.d/mountcritlocal | 31 +-- 1 file changed, 13

git: rc.d/sysctl: Rewrite to be more robust and clean

2018-12-19 Thread Aaron LI
commit 87206e7c403a8c39917ab3389bb5c3259b68b501 Author: Aaron LI Date: Thu Dec 13 13:58:27 2018 +0800 rc.d/sysctl: Rewrite to be more robust and clean * Check the validity of the sysctl config and warn about the invalid syntax. A common mistake is that users set

git: DragonFly_RELEASE_5_4 rc.d/netif: Rework wlan interface configuration

2018-12-17 Thread Aaron LI
commit 8bd3047b2ba8a0b26353974c344fb663b789ab98 Author: Aaron LI Date: Wed Dec 12 11:52:24 2018 +0800 rc.d/netif: Rework wlan interface configuration * wlan interfaces are more similar to clonable interfaces rather than vlan interfaces, so move the relevant code from

git: DragonFly_RELEASE_5_4 network.subr: Properly bring up/down interfaces

2018-12-17 Thread Aaron LI
commit 58453939d13ff7f33300c09a65e8eebf92427f46 Author: Aaron LI Date: Wed Dec 12 11:29:10 2018 +0800 network.subr: Properly bring up/down interfaces Now that the interface will be properly brought up in ifconfig_up(), clean up the rc.d/wpa_supplicant script. Summary

git: DragonFly_RELEASE_5_4 network.subr: Add IPv6 support to ifalias_{up, down}()

2018-12-17 Thread Aaron LI
commit 8cc8b1d918da4d764fac518b8d1fbd20fb0f1f9a Author: Aaron LI Date: Wed Dec 12 11:16:05 2018 +0800 network.subr: Add IPv6 support to ifalias_{up,down}() * Factor out the common parts of ifalias_{up,down}() to be ifalias_common(). * Add IPv6 support to ifalias_common

git: DragonFly_RELEASE_5_4 network.subr: Clean up list_net_interfaces()

2018-12-17 Thread Aaron LI
commit ea97404d72110c93f2f8f2a1e14f8868c6db852a Author: Aaron LI Date: Tue Dec 11 21:16:25 2018 +0800 network.subr: Clean up list_net_interfaces() The rc.d/netif takes care of DHCP/non-DHCP interfaces appropriately, and thus the interface type filter feature

git: DragonFly_RELEASE_5_4 rc.d/netif: Rename network_* to netif_* for consistency

2018-12-17 Thread Aaron LI
commit 556e28b0119adb92afaeb3bc0f7d20827e95b4dd Author: Aaron LI Date: Tue Dec 11 21:27:43 2018 +0800 rc.d/netif: Rename network_* to netif_* for consistency Rename network_* subroutines to netif_* for better consistency. Also set the rcvar and add netif_enable=YES

git: DragonFly_RELEASE_5_4 network.subr: Workaround race between wpa_supplicant and dhcpcd

2018-12-17 Thread Aaron LI
commit d33b5b477bbcd05cf0fafeb5323a427c80f6d5e9 Author: Aaron LI Date: Wed Dec 12 12:06:17 2018 +0800 network.subr: Workaround race between wpa_supplicant and dhcpcd Insert a 1-second delay after starting wpa_supplicant(8) to workaround the race between it and dhcpcd(8

git: DragonFly_RELEASE_5_4 Allow optional "inet6" keyword in ipv6_ifconfig_

2018-12-17 Thread Aaron LI
commit 7164fae4cd2854acfcea492d62b4585099c825ca Author: Aaron LI Date: Wed Dec 12 22:53:00 2018 +0800 Allow optional "inet6" keyword in ipv6_ifconfig_ Summary of changes: etc/network.subr | 1 + 1 file changed, 1 insertion(+) http://gitweb.dragonflybsd.org/dragonfly.git/

git: DragonFly_RELEASE_5_4 network.subr: Cleanups and minor improvements

2018-12-17 Thread Aaron LI
commit 6fac7714ee9cf1ecc175f8a6cde9508ba739afbd Author: Aaron LI Date: Tue Dec 11 14:05:20 2018 +0800 network.subr: Cleanups and minor improvements * Localize variables in all functions. * Better name several variables (e.g., $i -> $_if). * Simplify several test and c

git: DragonFly_RELEASE_5_4 rc: Use SYSCTL{,_N,_W} variables

2018-12-17 Thread Aaron LI
commit 3128f8970b0c0203f87c83200d4d3ec07d9e7377 Author: Aaron LI Date: Sun Dec 9 10:55:55 2018 +0800 rc: Use SYSCTL{,_N,_W} variables With minor cleanups to IO redirections. Summary of changes: etc/network.subr| 4 ++-- etc/rc.d/devd | 2 +- etc/rc.d

git: rc.d/netif: Rename network_* to netif_* for consistency

2018-12-14 Thread Aaron LI
commit ef976ecc47f9d187fcf49badb84bf8e4a2ee4375 Author: Aaron LI Date: Tue Dec 11 21:27:43 2018 +0800 rc.d/netif: Rename network_* to netif_* for consistency Rename network_* subroutines to netif_* for better consistency. Also set the rcvar and add netif_enable=YES

git: network.subr: Cleanups and minor improvements

2018-12-14 Thread Aaron LI
commit e4b0f1d1aee8ce626258fbcb4684dc67fdf84552 Author: Aaron LI Date: Tue Dec 11 14:05:20 2018 +0800 network.subr: Cleanups and minor improvements * Localize variables in all functions. * Better name several variables (e.g., $i -> $_if). * Simplify several test and c

git: rc: Use SYSCTL{,_N,_W} variables

2018-12-14 Thread Aaron LI
commit b0a4258dac6a92fa83c26684328e20c7dd4da4e6 Author: Aaron LI Date: Sun Dec 9 10:55:55 2018 +0800 rc: Use SYSCTL{,_N,_W} variables With minor cleanups to IO redirections. Summary of changes: etc/network.subr| 4 ++-- etc/rc.d/devd | 2 +- etc/rc.d

git: network.subr: Properly bring up/down interfaces

2018-12-14 Thread Aaron LI
commit 5ad36ff1bf17fc3ebb85aa68fd9360993939d26d Author: Aaron LI Date: Wed Dec 12 11:29:10 2018 +0800 network.subr: Properly bring up/down interfaces Now that the interface will be properly brought up in ifconfig_up(), clean up the rc.d/wpa_supplicant script. Summary

git: network.subr: Workaround race between wpa_supplicant and dhcpcd

2018-12-14 Thread Aaron LI
commit e9136cbfc9bca1a07ab401f4e82a641eed0a004c Author: Aaron LI Date: Wed Dec 12 12:06:17 2018 +0800 network.subr: Workaround race between wpa_supplicant and dhcpcd Insert a 1-second delay after starting wpa_supplicant(8) to workaround the race between it and dhcpcd(8

git: Allow optional "inet6" keyword in ipv6_ifconfig_

2018-12-14 Thread Aaron LI
commit 203bea78ba86cb8cc55309fc7412dd14a131471d Author: Aaron LI Date: Wed Dec 12 22:53:00 2018 +0800 Allow optional "inet6" keyword in ipv6_ifconfig_ Summary of changes: etc/network.subr | 1 + 1 file changed, 1 insertion(+) http://gitweb.dragonflybsd.org/dragonfly.git/

git: rc: Let dhcpcd(8) go to background immediately by default

2018-12-14 Thread Aaron LI
commit d7d1b3cdbd66494dc8e032c9869f1ddc57bd1184 Author: Aaron LI Date: Fri Dec 14 22:08:26 2018 +0800 rc: Let dhcpcd(8) go to background immediately by default Set the default value of "dhcpcd_flags" to be "-b", thus don't let dhcpcd(8) block the b

git: network.subr: Add IPv6 support to ifalias_{up,down}()

2018-12-14 Thread Aaron LI
commit 3b4e0f2a0d60c51f5b7bb893d7e1f0804cb4a697 Author: Aaron LI Date: Wed Dec 12 11:16:05 2018 +0800 network.subr: Add IPv6 support to ifalias_{up,down}() * Factor out the common parts of ifalias_{up,down}() to be ifalias_common(). * Add IPv6 support to ifalias_common

git: rc.d/netif: Rework wlan interface configuration

2018-12-14 Thread Aaron LI
commit 3928a593ab3010edcf0cb7727946eafd6f5cfd40 Author: Aaron LI Date: Wed Dec 12 11:52:24 2018 +0800 rc.d/netif: Rework wlan interface configuration * wlan interfaces are more similar to clonable interfaces rather than vlan interfaces, so move the relevant code from

git: network.subr: Clean up list_net_interfaces()

2018-12-14 Thread Aaron LI
commit 0e387345be5e08113d61156e6d46d1502bfc4987 Author: Aaron LI Date: Tue Dec 11 21:16:25 2018 +0800 network.subr: Clean up list_net_interfaces() The rc.d/netif takes care of DHCP/non-DHCP interfaces appropriately, and thus the interface type filter feature

git: ifconfig(8): Add option -n to disable auto module loading

2018-12-08 Thread Aaron LI
commit 13d73250676eae52cdf84768cfcf9c792b81d01b Author: Aaron LI Date: Tue Nov 27 12:05:58 2018 +0800 ifconfig(8): Add option -n to disable auto module loading This option may be used by rc scripts to disable the auto loading of network modules when try to configure/stop

git: DragonFly_RELEASE_5_4 network.subr: Handle DHCP in ipv6_ifconfig_

2018-11-27 Thread Aaron LI
commit 715a98c57278aab43347712709e69c3535619a42 Author: Aaron LI Date: Wed Nov 28 12:50:44 2018 +0800 network.subr: Handle DHCP in ipv6_ifconfig_ Commit 329743def50a061489debcd9682983235c8f5b42 allows to set 'ipv6_ifconfig_="DHCP"' to tell dhcpcd(8) to config

git: network.subr: Handle DHCP in ipv6_ifconfig_

2018-11-27 Thread Aaron LI
commit d15e512d3b5172c37cc1dae56a265fae383611a8 Author: Aaron LI Date: Wed Nov 28 12:50:44 2018 +0800 network.subr: Handle DHCP in ipv6_ifconfig_ Commit 329743def50a061489debcd9682983235c8f5b42 allows to set 'ipv6_ifconfig_="DHCP"' to tell dhcpcd(8) to config

git: initrd: Explicitly say the status when build completes

2018-11-25 Thread Aaron LI
commit 9560d18cc62dd91f76f6c0a6148284006d07a7b9 Author: Aaron LI Date: Mon Nov 26 15:29:56 2018 +0800 initrd: Explicitly say the status when build completes Before this change, the 'all' target that builds the rescue and initrd will end with a '--- obj ---' line, which may

git: DragonFly_RELEASE_5_4 initrd: Explicitly say the status when build completes

2018-11-25 Thread Aaron LI
commit 1b0477a9618412b4c0da82c46d2232ae19c9f0fb Author: Aaron LI Date: Mon Nov 26 15:29:56 2018 +0800 initrd: Explicitly say the status when build completes Before this change, the 'all' target that builds the rescue and initrd will end with a '--- obj ---' line, which may

git: DragonFly_RELEASE_5_4 Makefile.inc1: Some minor cleanups

2018-11-25 Thread Aaron LI
commit 5f61cff38ea151bd5f7c88a8ddc6547f593d3703 Author: Aaron LI Date: Sat Nov 24 19:09:00 2018 +0800 Makefile.inc1: Some minor cleanups No functional change. Summary of changes: Makefile.inc1 | 64 --- 1 file changed, 44

git: DragonFly_RELEASE_5_4 initrd: Rework build and install stages

2018-11-25 Thread Aaron LI
commit cead61f61bc7ce39559505a3ec74a370c8b28254 Author: Aaron LI Date: Sat Nov 24 18:52:03 2018 +0800 initrd: Rework build and install stages * Rewrite the Makefile to provide only the 'all' and 'install' targets. Do not separate the handling of the rescue tools and initrd

git: Makefile.inc1: Some minor cleanups

2018-11-25 Thread Aaron LI
commit 4af345973b8a7e09ca0364f984adbdbf1ec4ca22 Author: Aaron LI Date: Sat Nov 24 19:09:00 2018 +0800 Makefile.inc1: Some minor cleanups No functional change. Summary of changes: Makefile.inc1 | 64 --- 1 file changed, 44

git: initrd: Rework build and install stages

2018-11-25 Thread Aaron LI
commit bc897c50d49f0df1bf5eea38a4a7d904c2e92795 Author: Aaron LI Date: Sat Nov 24 18:52:03 2018 +0800 initrd: Rework build and install stages * Rewrite the Makefile to provide only the 'all' and 'install' targets. Do not separate the handling of the rescue tools and initrd

<    1   2   3   4   5   6   7   >