#! /bin/sh
#
# A simple script file to save the entries in the NET/ROM routing /proc file
# entries.
#

if [ "$#" = "0" ]; then
	echo "Usage: nodesave <filename>"
	exit 1
fi

if [ -f /proc/net/nr ]; then
	cat /proc/net/nr_neigh > $1
	cat /proc/net/nr_nodes >> $1
	exit 0
else
	echo "nodesave: NET/ROM not configured into the kernel - aborting"
	exit 1
fi
