Last change
on this file since 32611 was 31904, checked in by vboxsync, 14 years ago |
OSE header fix
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
961 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 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 |
|
---|
18 | SYMFILE="/tmp/$1-Module.symvers"
|
---|
19 | case "$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 | ;;
|
---|
33 | esac
|
---|
Note:
See
TracBrowser
for help on using the repository browser.