SUMMARY: route in Sun 10

From: Yashpal Nagar <yash_at_linux-delhi.org>
Date: Mon Aug 22 2005 - 00:25:42 EDT
Thanks to all those who replied..

To make a permanant route one can use the follwing.
1. use file /etc/init.d/inetsvc OR make a script in /etc/rc2.d with the route 
content like:

#!/sbin/sh
#S67static-route file
#  static route table for 
echo " Setting static routes "
route add 172.16.1.0 -netmask 255.255.255.0 10.7.0.240 > /dev/console
echo  " Done with setting static routes "
##Done!

Some people also have suggested 
/etc/default/inetinit to put the route, but not tested.

For second question, one should  use
pkgchk  -l -p /path/to/file

Or alternatively

grep FILENAME /var/sadm/install/contents

Regards,
Yash




On Thursday 18 Aug 2005 11:37 am, Yashpal Nagar wrote:
> Hi Admins,
>
> I want to make a route permanant for even after reboot. while searching i
> found that one can either create a script in /etc/rc2.d or put the route
> entry in the last of file /etc/init.d/inetsvc
>
> it works in Sun 5.9, but there is no such file /etc/init.d/inetsvc in sun
> 5.10
>
> Secondly, i want to know which pakage a file belongs?
> e.g in linux #rpm -qf /path/to/file
>
> Help!
> Thanks
> Yash
> _______________________________________________
> sunmanagers mailing list
> sunmanagers@sunmanagers.org
> http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon Aug 22 00:27:09 2005

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:50 EST