Zitat:
Original geschrieben von stoni
um eine i-net verbindung aufbauen zu können muss ich mich schon beim start als root anmelden und dann in der konsole mit pptp 10.0.0.138 starten danach den browser.
|
Hallo!
Ok, dann ist es bei SuSE nicht anders als bei Debian:
Ich starte die Verbindung schon beim Bootvorgang mittels eines selbstgeschriebenen Skripts:
lrwxrwxrwx 1 root root 16 Nov 19 21:27 S90pptp -> /etc/init.d/pptp
#! /bin/sh
#
# /etc/init.d/pptp: start or stop PPTP link
#
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/local/sbin/pptp
OPTIONS="10.0.0.138"
NAME=pptp
DESC="Point to Point Tunneling Daemon"
test -x $DAEMON || exit 0
set -e
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON -- $OPTIONS
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON
echo "$NAME."
;;
restart|force-reload)
#
# If the "reload" option is implemented, move the "force-reload"
# option to the "reload" entry above. If not, "force-reload" is
# just the same as "restart".
#
echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON
sleep 1
start-stop-daemon --start --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON -- $OPTIONS
echo "$NAME."
;;
*)
N=/etc/init.d/$NAME
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
Inwiefern da nicht SuSE schon was in der rc.config hat, weiss ich nicht?
Und sollte ich es als User neustarten müssen habe ich mich als User in "sudo" für diese Kommando eingetragen, damit ich das, und NUR das, mit Rootrechten ausführen kann.
man sudo
visudo
NIE mit einem Programm als root ins Internet gehen! Never, no, njet!
HTH,
Ciao,
Steve