Ypnose
52a0874624
uptime.c: Use the UTMP_PATH from config.def.h
2015-09-03 19:57:21 +01:00
Hiltjo Posthuma
71da5628d1
mount: helper support + improvements
...
- helper support (mount.type).
- helpers need to be in $PATH, if needed we can add a check for
/sbin/mount.XXXX
- pass -B, -M, -R to helper, its more reliable to pass these named
options with -o however.
- allow prefix "no" for which type no action should be taken:
mount -a -t nonfs,ext4
fix bugs:
- dont modify me->mnt_opts (used strtok).
2015-05-11 23:35:54 +01:00
Hiltjo Posthuma
ee5b04a7a3
switch_root: execv: show error string
2015-05-10 13:41:23 +01:00
Hiltjo Posthuma
78ddef361c
mountpoint: -q should not print errors
2015-05-10 13:41:23 +01:00
Hiltjo Posthuma
7f42fe77c3
strlcpy, strlcat: print program name, use for usage
...
... same as sbase libutil/strl{cat,cpy}.c. Fix comment in util.h
2015-05-10 13:41:23 +01:00
Hiltjo Posthuma
06e895a67d
mountpoint: style, order flags
2015-05-10 12:59:23 +01:00
tm512
d988f01f0f
id: Implement -n
2015-04-26 10:40:09 +01:00
Ypnose
91cd388a39
Makefile: missing ubase-box-install in PHONY
2015-04-03 23:10:14 +01:00
Hiltjo Posthuma
47dc849986
TODO: update, thanks Ypnose
...
sort list
2015-04-01 11:28:22 +01:00
Hiltjo Posthuma
d594d3aa53
lsusb, ps: style: put main at bottom
2015-03-11 15:18:10 +00:00
Hiltjo Posthuma
54b84ee3bd
README: explain make ubase-box-install
2015-03-03 13:32:43 +00:00
Hiltjo Posthuma
67220cf2e8
make rule: ubase-box-install
...
rule to make ubase-box and setup symlinks for $BIN
some (maybe) interesting info:
$ make LDFLAGS="-s -static" CFLAGS="-Os" PREFIX=/ DESTDIR=`pwd`/static-normal install
$ make LDFLAGS="-s -static" CFLAGS="-Os" PREFIX=/ DESTDIR=`pwd`/static-box ubase-box-install
$ du -sk static-normal/ static-box
1776 static-normal
356 static-box
2015-03-03 13:32:43 +00:00
FRIGN
52df018c66
Add tabs(1) to TODO
...
Thanks Roberto!
2015-02-26 11:00:24 +00:00
sin
9297082b96
add tput to TODO
2015-02-25 22:04:40 +00:00
Hiltjo Posthuma
9455f51dd8
mount: use libutil/concat instead of custom catfile
...
this trivializes the code some more
2015-02-22 11:34:37 +00:00
sin
a518580165
Sync concat() from sbase
2015-02-22 11:08:57 +00:00
Hiltjo Posthuma
43327506b6
mount: support "noauto" in /etc/fstab
2015-02-20 15:36:33 +00:00
Hiltjo Posthuma
710081b07a
mount: change mounted() check
...
- use getmntent_r instead of getmntent: because getmntent was nested it
overwrote the previous internal mntent structure.
- check mounted() first, if not try to mount: this also makes sure filesystems
were not mounted multiple times (like tmpfs) and errno is not overwritten in
mounted(). For this reason also mount() errno EBUSY can't be used (tested).
2015-02-20 15:36:33 +00:00
Hiltjo Posthuma
a248370eb6
mount: catfile: return 0 or -1
2015-02-20 15:36:33 +00:00
Hiltjo Posthuma
314f2a77f0
last: spaces to tabs
2015-02-20 15:36:33 +00:00
Hiltjo Posthuma
faa6fe28e2
swapon, swapoff: show usage with -a device
...
... and small cleanup.
2015-02-06 15:16:24 +00:00
Hiltjo Posthuma
7e394bd70f
code-style: cleanup
...
- move main() at the bottom.
- put global variables at the top.
- improve usage() lines (consistent with man page).
2015-02-06 15:16:24 +00:00
Hiltjo Posthuma
1c7b96de55
dmesg: fix usage and code-style
2015-02-06 15:16:24 +00:00
Hiltjo Posthuma
4855f188c1
fsfreeze: fix usage line, either -f or -u
2015-02-06 15:16:24 +00:00
Hiltjo Posthuma
96c15e765b
vtallow, who: usage using argv0
2015-02-06 15:16:23 +00:00
Hiltjo Posthuma
c7f472f468
dd: code-style, linewrap
2015-02-06 15:16:23 +00:00
Hiltjo Posthuma
f0cfd58e93
chvt: usage using argv0
2015-02-06 15:16:23 +00:00
Hiltjo Posthuma
a46944add9
dd.1: fix
2015-02-06 15:16:23 +00:00
Hiltjo Posthuma
363ac46766
Makefile: make man pages with ubase VERSION
2015-02-06 15:16:23 +00:00
Hiltjo Posthuma
544779a7b8
doc: convert man pages to mandoc, fix some typos in the process
2015-02-06 15:16:23 +00:00
Eon S. Jeon
6253da55c1
support llvm-ar
...
llvm-ar doesn't understand flags prefixed with dashes.
2015-02-03 11:56:06 +00:00
sin
8fe02392ed
dd: Only sync once
2015-02-02 22:32:56 +00:00
sin
1c2006fd2c
Add Risto to LICENSE
2015-01-26 19:26:22 +00:00
Risto Salminen
ab4f93cf47
Fix df hanging when statvfs() fails.
...
Now df prints out an appropriate error message when statvfs() fails
instead of just hanging. Also make df return 1 when statvfs() fails.
2015-01-26 19:26:22 +00:00
sin
f701698297
Don't do a blocking open in ttytostr()
2015-01-16 16:20:16 +00:00
sin
a7a561ef00
Handle cleanup properly in ttytostr()
2015-01-16 16:10:38 +00:00
sin
8a95422ff1
Check if the ttymaj/ttymin match is actually a tty
2015-01-16 16:10:37 +00:00
sin
a5c30abf8f
Use TTY_NAME_MAX instead of PATH_MAX
2015-01-16 15:55:07 +00:00
sin
d76319f838
Properly match (ttymaj, ttymin) pairs to tty names in /dev
...
For the common case where we have pts/ or tty do it straight
away. Otherwise traverse /dev for a match. This fixes ps(1) when
it is executed over a serial terminal with tty names like ttyAMA0.
2015-01-16 15:55:07 +00:00
sin
2a0deb7600
Update LICENSE
2014-12-31 22:02:29 +00:00
sin
084d375a7d
Update LICENSE file just like for sbase
2014-12-23 18:10:54 +00:00
sin
42db5e13d0
Rename to unlock/lock as opposed to enable/disable
2014-12-05 19:06:40 +00:00
sin
b0b8579eb3
Add vtallow.1
2014-12-05 15:41:13 +00:00
sin
4269d523e2
Add vtallow(1) to enable or disable VT switch
2014-12-05 15:16:07 +00:00
sin
74c0abb6a2
Use -D_XOPEN_SOURCE=700
2014-11-30 14:12:52 +00:00
sin
cee1a0170d
watch: If period is negative default to 0.1s
2014-11-30 14:08:42 +00:00
sin
703e18185c
Update watch(1) to handle more accurate intervals
2014-11-30 14:05:44 +00:00
sin
4cb108f557
No need for dmesg_show() to have an fd
2014-11-30 13:28:26 +00:00
sin
10d6bf2f4d
Stop using *_FILENO
2014-11-30 13:12:33 +00:00
sin
2d45a04b92
Check if 0, 1, 2 are valid tty file descriptors
2014-11-30 13:05:24 +00:00