Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37902261
en ru br
ALT Linux repositórios
S:20110406-alt1

Group :: Sistema/Configurações/Rede
RPM: live-hooks-tftp

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

live-hooks-tftp/000075500000000000000000000000001154704015400141105ustar00rootroot00000000000000live-hooks-tftp/live-hooks-tftp000075500000000000000000000014401154704015400170700ustar00rootroot00000000000000#!/bin/sh
#
#
# chkconfig: 2345 05 99
# description: This startup script runs user scripts from tftp
#

WITHOUT_RC_COMPAT=1

# Source function library.
. /etc/init.d/functions

RETVAL=0

start() {
HOOKS=$(grep -o 'hook-tftp=[^ ]*' /proc/cmdline | cut -d = -f 2)
TMPDIR='/tmp'
for i in $HOOKS; do
HOST=$(echo $i | cut -d : -f 1)
FILE=$(echo $i | cut -d : -f 2)
tftp $HOST -c get $FILE $TMPDIR/$FILE
[ -f $TMPDIR/$FILE ] && . $TMPDIR/$FILE
done
}

# See how we were called.
case "$1" in
start)
start
;;
stop|condstop|status)
;;
restart|reload|condrestart|condreload)
;;
*)
msg_usage "${0##*/} {start|stop|reload|restart|condstop|condrestart|condreload|status}"
RETVAL=1

esac

exit $RETVAL
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009