Unix Technical Forum

sudo hooks for kernel install

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > lucky.openbsd.tech

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-22-2008, 11:28 AM
Ray
 
Posts: n/a
Default sudo hooks for kernel install

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:27 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com