mirror of https://github.com/hak5/openwrt.git
base-files: remove /etc/uci-defaults/11_migrate-sysctl
11_migrate-sysctl has not been updated with new file hashes since 2012. Let's get rid of it. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>openwrt-18.06
parent
c61c709f4e
commit
6c7307f133
|
@ -1,16 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ ! -f "/rom/etc/sysctl.conf" ] || cmp -s "/rom/etc/sysctl.conf" "/etc/sysctl.conf"; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
fingerprint="$(md5sum /etc/sysctl.conf)"
|
||||
fingerprint="${fingerprint%% *}"
|
||||
|
||||
if [ "$fingerprint" = "1b05ebb41f72cb84e5510573cd4aca26" ] || \
|
||||
[ "$fingerprint" = "62deb895be1a7f496040187b7c930e4e" ]; then
|
||||
logger -t migrate-sysctl "Updating sysctl.conf to use current defaults"
|
||||
cp "/rom/etc/sysctl.conf" "/etc/sysctl.conf"
|
||||
fi
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue