diff options
author | James Meyer <james.meyer@operamail.com> | 2011-12-07 19:43:43 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2011-12-07 19:43:43 (GMT) |
commit | 65b2738ba8a6b80a17c5a2953a29be935b15d18c (patch) | |
tree | 163711ae5ab32e08b97d7f3c51f19bae7e6ba793 /abs/extra/wol/wol.install | |
parent | d110649b4180587f1e4064684ba9c61df83a6ec1 (diff) | |
download | linhes_pkgbuild-65b2738ba8a6b80a17c5a2953a29be935b15d18c.zip linhes_pkgbuild-65b2738ba8a6b80a17c5a2953a29be935b15d18c.tar.gz linhes_pkgbuild-65b2738ba8a6b80a17c5a2953a29be935b15d18c.tar.bz2 |
WOL: remove wakeonlan.sh script, as it moved to LinHES-system.
This allows the WOL pkg to be updated without any special considerations.
Diffstat (limited to 'abs/extra/wol/wol.install')
-rw-r--r-- | abs/extra/wol/wol.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/abs/extra/wol/wol.install b/abs/extra/wol/wol.install new file mode 100644 index 0000000..500ea57 --- /dev/null +++ b/abs/extra/wol/wol.install @@ -0,0 +1,20 @@ +infodir=/usr/share/info +filelist=(wol.info) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file.gz $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null + done +} |