Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial release of medion-amda00-dev-driver-lihas skeleton files
- Loading branch information
root
committed
May 13, 2016
1 parent
0cd439b
commit e940447
Showing
3 changed files
with
209 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
; Copyright (c) uib gmbh (www.uib.de) | ||
; This sourcecode is owned by uib | ||
; and published under the Terms of the General Public License. | ||
; credits: http://www.opsi.org/credits/ | ||
|
||
|
||
[Actions] | ||
DefVar $ProductId$ | ||
DefStringList $ResultList$ | ||
DefVar $Model$ | ||
DefVar $INST_SystemType$ | ||
DefVar $Bittyness$ | ||
DefVar $NTVer$ | ||
DefVar $WinVer$ | ||
|
||
Set $INST_SystemType$ = GetSystemType | ||
Set $NTVer$ = GetMsVersionInfo | ||
|
||
Set $ProductId$ = "medion-amda00-dev-driver-lihas" | ||
|
||
comment "Show product picture" | ||
ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$ | ||
|
||
Set $ResultList$ = getHWBiosInfoMap | ||
Set $Model$ = getValue("sysinfo.Product Name",$ResultList$) | ||
|
||
;SetLogLevel = 9 | ||
|
||
if CompareDotSeparatedNumbers($NTVer$,">=","10.0") | ||
Set $WinVer$ = "Win10" | ||
else | ||
if CompareDotSeparatedNumbers($NTVer$,">=","6.3") | ||
Set $WinVer$ = "Win8.1" | ||
else | ||
if CompareDotSeparatedNumbers($NTVer$,">=","6.2") | ||
Set $WinVer$ = "Win8" | ||
else | ||
if CompareDotSeparatedNumbers($NTVer$,">=","6.1") | ||
Set $WinVer$ = "Win7" | ||
else | ||
comment "Unsupported Windows Version" | ||
LogError "Unsupported Windows Version" | ||
isFatalError | ||
endif | ||
endif | ||
endif | ||
endif | ||
if NOT ( $Model$ = "NULL" ) | ||
comment " Model found: " + $Model$ | ||
if $INST_SystemType$ = "64 Bit System" | ||
Set $Bittyness$ = "x64" | ||
else | ||
Set $Bittyness$ = "x86" | ||
endif | ||
DosInAnIcon_instdrvs winst /SysNative | ||
else | ||
comment "Unknown Model." | ||
LogError "Unknown Model." | ||
endif | ||
[DosInAnIcon_instdrvs] | ||
@echo off | ||
cd /d "%ScriptDir%\files\$Model$\$Bittyness$\$WinVer$" | ||
PnPutil.exe -i -a *.inf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
WGET_COMMON_OPTIONS = -q -N | ||
|
||
PACKAGE_NAME = medion-amda00-dev-driver-lihas | ||
VERSION = 1.0 | ||
OPSI_PACKAGE_VERSION = 2 | ||
|
||
DOWNLOAD_DIR = ./CLIENT_DATA/files/ | ||
DOWNLOAD_URLS = http://dlcdnet.asus.com/pub/ASUS/mb/socket1150/Z97-WS/Driver/AMDA00_V1010.zip | ||
DOWNLOAD_FILES = $(foreach url,$(DOWNLOAD_URLS),$(subst $(dir $(url)),,$(url))) | ||
DOWNLOAD_TARGETS = $(addprefix $(DOWNLOAD_DIR)/,$(DOWNLOAD_FILES)) | ||
|
||
TARGET = $(PACKAGE_NAME)_$(VERSION)-$(OPSI_PACKAGE_VERSION).opsi | ||
|
||
all: download unpack build install | ||
|
||
$(DOWNLOAD_TARGETS): | ||
mkdir -p "$(DOWNLOAD_DIR)" | ||
wget $(WGET_COMMON_OPTIONS) -P "$(DOWNLOAD_DIR)" $(DOWNLOAD_URLS) | ||
|
||
download: $(DOWNLOAD_TARGETS) | ||
|
||
unpack: $(DOWNLOAD_TARGETS) | ||
mkdir -p "$(DOWNLOAD_DIR)/unpacked/" | ||
7z x -o"$(DOWNLOAD_DIR)/unpacked/" "$(DOWNLOAD_DIR)/$(DOWNLOAD_FILES)" | ||
(cd "$(DOWNLOAD_DIR)" && rm $(DOWNLOAD_FILES)) | ||
|
||
$(TARGET): | ||
mkdir -p "$(DOWNLOAD_DIR)/Pentino_H-Series A_MT_B85-1/x86" | ||
mkdir -p "$(DOWNLOAD_DIR)/Pentino_H-Series A_MT_B85-1/x64" | ||
rsync -aPvH "$(DOWNLOAD_DIR)/unpacked/AMDA00/x86/"* "$(DOWNLOAD_DIR)/Pentino_H-Series A_MT_B85-1/x86" | ||
rsync -aPvH "$(DOWNLOAD_DIR)/unpacked/AMDA00/x64/"* "$(DOWNLOAD_DIR)/Pentino_H-Series A_MT_B85-1/x64" | ||
rm -rf "$(DOWNLOAD_DIR)/unpacked/AMDA00" | ||
opsi-makeproductfile | ||
|
||
build: $(TARGET) | ||
|
||
$(TARGET).uploaded: | ||
opsi-package-manager -i $(TARGET) | ||
touch $(TARGET).uploaded | ||
|
||
install: $(TARGET).uploaded | ||
|
||
clean: | ||
rm -rf "$(DOWNLOAD_DIR)" | ||
rm -f $(TARGET) $(TARGET).uploaded |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
[Package] | ||
version: 2 | ||
depends: | ||
incremental: False | ||
|
||
[Product] | ||
type: localboot | ||
id: medion-amda00-dev-driver-lihas | ||
name: medion-amda00-dev-driver-lihas | ||
description: Installiert auf Medion-Pentino_H-Series A_MT_B85-1-Rechnern den Geraetetreiber fuer das AMDA00-Device - auf anderen Systemen tut es nichts. | ||
advice: | ||
version: 1.0 | ||
priority: 0 | ||
licenseRequired: False | ||
productClasses: | ||
setupScript: install.ins | ||
uninstallScript: | ||
updateScript: | ||
alwaysScript: | ||
onceScript: | ||
customScript: | ||
userLoginScript: | ||
|
||
[Changelog] | ||
medion-amda00-dev-driver-lihas (1.0-2) testing; urgency=low | ||
|
||
* Now with driver download via Makefile | ||
|
||
-- Stefan Baur <lihas@lihas.de> Fri, 13 May 2016 11:15:00 +0000 | ||
|
||
medion-amda00-dev-driver-lihas (1.0-1) testing; urgency=low | ||
|
||
* Initial package | ||
|
||
-- Stefan Baur <lihas@lihas.de> Wed, 11 May 2016 17:17:00 +0000 | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|