This is a discussion on sudo hooks for kernel install within the lucky.openbsd.tech forums, part of the OpenBSD category; --> Tested on sparc64. No reason why this shouldn't work for all other arches. -Ray- Index: Makefile.sparc64 ================================================== ================= RCS ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Tested on sparc64. No reason why this shouldn't work for all other arches. -Ray- Index: Makefile.sparc64 ================================================== ================= RCS file: /cvs/src/sys/arch/sparc64/conf/Makefile.sparc64,v retrieving revision 1.21 diff -u -r1.21 Makefile.sparc64 --- Makefile.sparc64 19 Nov 2004 06:41:14 -0000 1.21 +++ Makefile.sparc64 19 Apr 2005 21:26:34 -0000 @@ -159,10 +159,10 @@ install: install-kernel-${MACHINE_NAME} .if !target(install-kernel-${MACHINE_NAME}}) install-kernel-${MACHINE_NAME}: - rm -f /obsd - ln /bsd /obsd - cp bsd /nbsd - mv /nbsd /bsd + ${SUDO} rm -f /obsd + ${SUDO} ln /bsd /obsd + ${SUDO} cp bsd /nbsd + ${SUDO} mv /nbsd /bsd .endif %RULES |