View Single Post
  #9   (View Single Post)  
Old 11th January 2009
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,131
Default

Because I always become root to add packages, I have it in root's home directory "/root".
Code:
j65nko@hercules[~]su - root
Password:
Terminal type? [xterm] 
root@hercules[~]mv /home/j65nko/PKGenv.txt PKGenv
You then source the script with the shell's "." command.
Code:
root@hercules[~]. ./PKGenv                                                  
------------------------------------
OpenBSD 4.2 (GENERIC) #1179: Tue Aug 28 10:37:50 MDT 2007
    deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
Current settings
------------------------------------
PKG_CACHE=/home/packages/
PKG_PATH=ftp://ftp.plig.org/pub/OpenBSD/4.4/packages/amd64/
------------------------------------
root@hercules[~]
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote