J'ai installé et exécuté no-ip ddns sur Kali 2.0 mais lorsque j'essaie de le faire fonctionner au démarrage, je ne sais pas comment changer le 'X' dans rcX.d ?
Le fichier de configuration dit :
If you want it to run automatically when the machine is booted, then
place the following script in your startup directory. (/etc/init.d/rcX.d
or /sbin/init.d/rcX.d or ???)
#######################################################
#! /bin/sh
# . /etc/rc.d/init.d/functions # uncomment/modify for your killproc
case "$1" in
start)
echo "Starting noip2."
/usr/local/bin/noip2
;;
stop)
echo -n "Shutting down noip2."
killproc -TERM /usr/local/bin/noip2
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
#######################################################
Where the 'X' in rcX.d is the value obtained by running the
following command
grep initdefault /etc/inittab | awk -F: '{print $2}'
Quand j'entre :
grep initdefault /etc/inittab | awk -F : '{print $2}'
J'ai compris :
grep: /etc/inittab: No such file or directory