From 8b708187f67733e12e8770105a4b005b441a9107 Mon Sep 17 00:00:00 2001 From: goodtft Date: Fri, 14 Sep 2018 15:59:06 +0800 Subject: [PATCH] Add files via upload upload for FBCP --- etc/rc.local | 23 +++++++++++++++++++++++ etc/rc.local-original | 23 +++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 etc/rc.local create mode 100644 etc/rc.local-original diff --git a/etc/rc.local b/etc/rc.local new file mode 100644 index 0000000..4e385fd --- /dev/null +++ b/etc/rc.local @@ -0,0 +1,23 @@ +#!/bin/sh -e +# +# rc.local +# +# This script is executed at the end of each multiuser runlevel. +# Make sure that the script will "exit 0" on success or any other +# value on error. +# +# In order to enable or disable this script just change the execution +# bits. +# +# By default this script does nothing. + +# Print the IP address +_IP=$(hostname -I) || true +if [ "$_IP" ]; then + printf "My IP address is %s\n" "$_IP" +fi + +sleep 7 +fbcp & + +exit 0 diff --git a/etc/rc.local-original b/etc/rc.local-original new file mode 100644 index 0000000..4e385fd --- /dev/null +++ b/etc/rc.local-original @@ -0,0 +1,23 @@ +#!/bin/sh -e +# +# rc.local +# +# This script is executed at the end of each multiuser runlevel. +# Make sure that the script will "exit 0" on success or any other +# value on error. +# +# In order to enable or disable this script just change the execution +# bits. +# +# By default this script does nothing. + +# Print the IP address +_IP=$(hostname -I) || true +if [ "$_IP" ]; then + printf "My IP address is %s\n" "$_IP" +fi + +sleep 7 +fbcp & + +exit 0