Skip to content

Commit ffc544f

Browse files
committed
Rename to udhcpc.script and don't rely on system's dhcp.sh anymore
1 parent faabbfa commit ffc544f

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## 1.2.0 (2015-12-01)
44

5-
* Add IPv6 support through custom udhcpc 'default.script'
5+
* Add IPv6 support through custom DHCP events script: 'udhcpc.script'
66

77
## 1.1.0 (2015-09-17)
88

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,9 @@ Notes about IPv6:
5555

5656
To install these scripts manually:
5757

58-
* Copy `network.sh, network_dhcp.sh and network_static.sh` to `/opt/`
58+
* Copy `network.sh, network_dhcp.sh, network_static.sh, and udhcpc.script` to `/opt/`
5959
* Create and edit the config at `/usr/local/etc/network.conf`
6060
* Add '/opt/network.sh' to `/opt/bootsync.sh`
61-
* Copy `default.script` to `/usr/share/udhcpc/default.script`
6261
* Add the scripts and config file to `/opt/.filetool.lst` for persistence
6362

6463
# How it works

network_dhcp.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
55
# MIT License
66
# Copyright (c) 2015 Alexander Williams, Unscramble <license@unscramble.jp>
77

8-
/usr/share/udhcpc/default.script deconfig
9-
/etc/init.d/dhcp.sh
8+
pid="/var/run/udhcpc.${interface}.pid"
9+
10+
/opt/udhcpc.script deconfig
11+
/sbin/udhcpc -b -i $interface -h $(/bin/hostname) -p $pid -s /opt/udhcpc.script >/dev/null 2>&1 &

network_static.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ if [ -f "$pid" ]; then
1212
kill `cat $pid`
1313
fi
1414

15-
/usr/share/udhcpc/default.script renew
15+
/opt/udhcpc.script renew
File renamed without changes.

0 commit comments

Comments
 (0)