cpurc, termrc, bootrc: organize default device binds

reorganise device binds for bootrc, cpurc and termrc.

make parallel port, audio, i2c and pci available in
cpurc/termrc console namespace.

remove redundant binds (which are handled by other
scripts).

detailed list:

¤ ¶:
cap and swap need to be bound only in bootrc.
for cpurc/termrc, it is bound from /lib/namespace.

P:
devarch, always good to have.

S f æ:
sd, floppy, aoe are always good to have in the console
namespace. regardless if its a cpu or terminal.
also bound in bootrc for obvious reasons.

note that #k is bound by diskparts script.

t:
uart; we always need it.

b m:
keyboard and mouse only needed in bootrc
for kbdfs and nusb/kb hid devices.

for cpurc/termrc, keyboard is provided by /srv/cons,
and mouse is bound by screenrc.

u:
usb stack, never needs to be bound manually as this
is handled by nusbrc.

v i:
vga and devdraw not needed to be bound here,
handled by screenrc.

L A J $:
parallel port, audio, i2c and pci are good to have in
cpurc/termrc console namespace for trouble shooting
and custom per site / machine rc scripts.
This commit is contained in:
cinap_lenrek 2023-10-14 17:12:05 +00:00
parent f9a61a0813
commit 4bc5793a2c
3 changed files with 5 additions and 4 deletions

View file

@ -5,8 +5,8 @@
NPROC=`{wc -l </dev/sysstat}
# bind all likely devices
for(i in u t S P '$')
bind -a '#'^$i /dev >/dev/null >[2=1]
for(i in P S f æ t L A J '$')
bind -qa '#'^$i /dev
rm -f /env/i
mount -qb /srv/cons /dev

View file

@ -6,8 +6,8 @@ TIMESYNCARGS=(-rLa1000000)
NPROC=`{wc -l </dev/sysstat}
# bind all likely devices
for(i in u v t m i f S P L A '$')
bind -a '#'^$i /dev >/dev/null >[2=1]
for(i in P S f æ t L A J '$')
bind -qa '#'^$i /dev
rm -f /env/i
mount -qb /srv/cons /dev

View file

@ -8,6 +8,7 @@ mntgen -s mntexport /mnt/exportfs && chmod 666 /srv/mntexport
bind /root /mnt/broot
unmount /root
# bind in devices
for(i in ¤ ¶ P S f æ t b m)
bind -qa '#'^$i /dev