Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 329786 Details for
Bug 443728
app-laptop/prey-0.5.4-r1: /etc/init.d/prey-trigger is installed as invalid symlink, first run attempts to locate an rc3.d directory, system module error
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Patched Services File with gentoo openrc configuration added
services (text/plain), 2.29 KB, created by
Justin M Griggs
on 2012-11-18 06:02:42 UTC
(
hide
)
Description:
Patched Services File with gentoo openrc configuration added
Filename:
MIME Type:
Creator:
Justin M Griggs
Created:
2012-11-18 06:02:42 UTC
Size:
2.29 KB
patch
obsolete
>#!/bin/bash >#################################################################### ># Prey Linux Service Management Functions - (c) 2011, Fork Ltd. ># Written by Tomas Pollak <tomas@forkhq.com> ># Licensed under the GPLv3. >#################################################################### > >linux_load_service(){ > get_distro_name > eval "${distro_name}_load_service $1" >} > >linux_unload_service(){ > get_distro_name > eval "${distro_name}_unload_service $1" >} > >linux_copy_init_script(){ > local full_init_script_path="$1/$2" > if [ ! -e "$full_init_script_path" ]; then > ln -s "${platform_path}/${2}" "$full_init_script_path" 2> /dev/null > local retval=$? > [ $retval != 0 ] && log " !! Couldn't copy init script into ${1}!" > return $retval > fi > return 0 >} > >linux_remove_init_script(){ > rm -f "$1/$2" > return $? >} > >####################################### ># distro-specific functions >####################################### > >debian_load_service(){ > linux_copy_init_script '/etc/init.d' $1 > [ $? == 0 ] && update-rc.d $1 defaults > /dev/null >} > ># we need to delete the init script first so that update-rc.d remove works ># otherwise we'd need to use the -f argument >debian_unload_service(){ > linux_remove_init_script '/etc/init.d' $1 > [ $? == 0 ] && update-rc.d $1 remove > /dev/null >} > >alias ubuntu_load_service='debian_load_service' >alias ubuntu_unload_service='debian_unload_service' > >redhat_load_service(){ > linux_copy_init_script '/etc/rc.d/init.d' $1 > [ $? == 0 ] && chkconfig $1 on >} > >redhat_unload_service(){ > linux_remove_init_script '/etc/rc.d/init.d' $1 > [ $? == 0 ] && chkconfig $1 off >} > >alias fedora_load_service='redhat_load_service' >alias fedora_unload_service='redhat_unload_service' > >suse_load_service(){ > linux_copy_init_script '/etc/init.d' $1 > [ $? == 0 ] && chkconfig --add $1 >} > >suse_unload_service(){ > linux_remove_init_script '/etc/init.d' $1 > [ $? == 0 ] && chkconfig --del $1 >} > >arch_load_service(){ > linux_copy_init_script '/etc/rc.d' $1 > [ $? == 0 ] && log " -- Prey network trigger has been copied to /etc/rc.d/$1. Remember to add it to /etc/rc.conf!" >} > >arch_unload_service(){ > linux_remove_init_script '/etc/rc.d' $1 >} > >gentoo_load_service(){ > linux_copy_init_script '/etc/init.d' $1 > rc-update add prey-trigger >} > >gentoo_unload_service(){ > rc-update delete prey-trigger > linux_remove_init_script '/etc/init.d' $1 >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 443728
:
329784
|
329786
|
329788
|
329790
|
329876
|
329878