VirtualBox

source: vbox/trunk/src/VBox/HostDrivers/linux/do_Module.symvers@ 53426

Last change on this file since 53426 was 44529, checked in by vboxsync, 12 years ago

header (C) fixes

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 966 bytes
Line 
1#!/bin/sh
2
3#
4# This script is used when building kernel modules from DKMS. I don't
5# know how to solve the problem of inter-module dependencies better.
6#
7# Copyright (C) 2008-2011 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18SYMFILE="/tmp/$1-Module.symvers"
19case "$2" in
20 save)
21 if [ -f "$3" ]; then
22 cp "$3" "$SYMFILE"
23 fi
24 ;;
25 restore)
26 if [ -f "$SYMFILE" ]; then
27 cp "$SYMFILE" "$3"
28 fi
29 ;;
30 *)
31 echo "Usage: <modname> save|restore <location of Module.symvers>"
32 ;;
33esac
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette