From 9fce0ca5c5bb6945b0534ba0f498fdb3b4da344b Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Wed, 20 Aug 2008 05:57:32 +0200 Subject: [PATCH] Fix updater (now real core18) fix missing newline at core17 filelist hostapd initscript now works also with eg. blue2 --- config/rootfiles/core/17/files | 2 +- config/rootfiles/updater/filelists/core17 | 2 +- doc/packages-list.txt | 2 +- lfs/hostapd | 2 +- lfs/updater | 6 +++--- src/initscripts/init.d/hostapd | 6 +----- 6 files changed, 8 insertions(+), 12 deletions(-) diff --git a/config/rootfiles/core/17/files b/config/rootfiles/core/17/files index d9decc4ff..bed4f1c28 100644 --- a/config/rootfiles/core/17/files +++ b/config/rootfiles/core/17/files @@ -1,3 +1,3 @@ etc/squid usr/lib/squid -usr/sbin/squid \ No newline at end of file +usr/sbin/squid diff --git a/config/rootfiles/updater/filelists/core17 b/config/rootfiles/updater/filelists/core17 index d9decc4ff..bed4f1c28 100644 --- a/config/rootfiles/updater/filelists/core17 +++ b/config/rootfiles/updater/filelists/core17 @@ -1,3 +1,3 @@ etc/squid usr/lib/squid -usr/sbin/squid \ No newline at end of file +usr/sbin/squid diff --git a/doc/packages-list.txt b/doc/packages-list.txt index 6a313c8f7..eafdf3e9f 100644 --- a/doc/packages-list.txt +++ b/doc/packages-list.txt @@ -263,7 +263,7 @@ * sox-12.18.1 * spandsp-0.0.4pre15 * squashfs3.2-r2 -* squid-2.7.STABLE3 +* squid-2.7.STABLE4 * squidGuard-1.3 * squidclamav-3.5 * sudo-1.6.8p12 diff --git a/lfs/hostapd b/lfs/hostapd index a46786687..3974d7c94 100644 --- a/lfs/hostapd +++ b/lfs/hostapd @@ -84,7 +84,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) install -v -m 644 $(DIR_SRC)/config/backup/includes/hostapd /var/ipfire/backup/addons/includes/hostapd mkdir -p /var/ipfire/wlanap touch /var/ipfire/wlanap/settings - cp -vrf $(DIR_SRC)/config/hostapd/hostapd.conf /var/ipfire/wlanap/etc/hostapd.conf + cp -vrf $(DIR_SRC)/config/hostapd/hostapd.conf /var/ipfire/wlanap/hostapd.conf chown nobody:nobody /var/ipfire/wlanap/* chmod 644 /var/ipfire/wlanap/* @rm -rf $(DIR_APP) diff --git a/lfs/updater b/lfs/updater index ca528137e..c66ae657b 100644 --- a/lfs/updater +++ b/lfs/updater @@ -76,7 +76,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) sed -e "s/NAME/core-upgrade/g" \ -e "s/VER/2.1/g" \ - -e "s/RELEASE/16/g" \ + -e "s/RELEASE/18/g" \ -e "s/DEPS/$(DEPS)/g" \ - -e "s/SIZE/`ls -l \/install\/packages\/core-upgrade-2.1-17.ipfire | awk '{ print $$5 }'`/g" \ - < /usr/src/src/pakfire/meta > /install/packages/meta-core-upgrade-17 + -e "s/SIZE/`ls -l \/install\/packages\/core-upgrade-2.1-18.ipfire | awk '{ print $$5 }'`/g" \ + < /usr/src/src/pakfire/meta > /install/packages/meta-core-upgrade-18 diff --git a/src/initscripts/init.d/hostapd b/src/initscripts/init.d/hostapd index b629d32b7..f894b1a63 100644 --- a/src/initscripts/init.d/hostapd +++ b/src/initscripts/init.d/hostapd @@ -35,11 +35,7 @@ case "${1}" in # Bring blue up (but not at boot) if [ "$(basename $0)" == "hostapd" ]; then - if [ "$(INTERFACE)" == "blue0" ]; then - /etc/rc.d/init.d/networking/blue start - elif [ "$(INTERFACE)" == "green0" ]; then - /etc/rc.d/init.d/networking/green start - fi + /etc/rc.d/init.d/networking/${INTERFACE//[0-9]/} start if [ -f /var/ipfire/dhcp/enable_blue || -f /var/ipfire/dhcp/enable_green ]; then /etc/rc.d/init.d/dhcp restart -- 2.39.2