mirror of
https://github.com/bvanroll/college-pentesting.git
synced 2025-08-29 12:02:46 +00:00
pls groot genoeg
This commit is contained in:
24
verb/binary/attemp2/fs/cpio/sbin/dhcp.sh
Executable file
24
verb/binary/attemp2/fs/cpio/sbin/dhcp.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $Id: dhcp.sh, v1.00 2009-11-05 andy
|
||||
#
|
||||
# usage: dhcp.sh
|
||||
#
|
||||
|
||||
echo "*** begin dhcp.sh ***"
|
||||
|
||||
lan_if="br0"
|
||||
gpio dhcpstate 0
|
||||
ipmode=`nvram_get 2860 IPAddressMode`
|
||||
|
||||
if [ "$ipmode" = "4" ]; then
|
||||
echo "*** re-start dhcp client ***"
|
||||
gpio dhcpstate 1
|
||||
gpio defaultip
|
||||
gpio gw 0.0.0.0
|
||||
killall -q udhcpc
|
||||
cameraname=`nvram_get 2860 CameraName`
|
||||
udhcpc -i $lan_if -s /sbin/udhcpc.sh -p /var/run/udhcpc.pid -H $cameraname &
|
||||
else
|
||||
killall -q udhcpc
|
||||
fi
|
Reference in New Issue
Block a user