do_Module.symvers revision c7814cf6e1240a519cbec0441e033d0e2470ed00
0N/A#!/bin/sh
2362N/A
0N/A#
0N/A# This script is used when building kernel modules from DKMS. I don't
0N/A# know how to solve the problem of inter-module dependencies better.
0N/A#
2362N/A# Copyright (C) 2008-2011 Oracle Corporation
0N/A#
2362N/A# This file is part of VirtualBox Open Source Edition (OSE), as
0N/A# available from http://www.virtualbox.org. This file is free software;
0N/A# you can redistribute it and/or modify it under the terms of the GNU
0N/A# General Public License (GPL) as published by the Free Software
0N/A# Foundation, in version 2 as it comes in the "COPYING" file of the
0N/A# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
0N/A# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
0N/A#
0N/A
0N/ASYMFILE="/tmp/$1-Module.symvers"
0N/Acase "$2" in
0N/A save)
2362N/A if [ -f "$3" ]; then
2362N/A cp "$3" "$SYMFILE"
2362N/A fi
0N/A ;;
0N/A restore)
0N/A if [ -f "$SYMFILE" ]; then
0N/A cp "$SYMFILE" "$3"
0N/A fi
0N/A ;;
0N/A *)
0N/A echo "Usage: <modname> save|restore <location of Module.symvers>"
0N/A ;;
0N/Aesac
0N/A