This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh /etc/rc.common | |
INTERFACE="eth4" | |
START=99 | |
start() { | |
count=0 | |
while [ ! -e /sys/class/net/$INTERFACE ] && [ $count -lt 30 ]; do | |
sleep 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# /ptconf/8311/vlan_fixes_hook.sh | |
# this will allow all vlans to work, and remaps the multicast to IPTV_VLAN | |
# the multicast rules may need some adjustment depending on exactly how the packets are actually tagged from the OLT | |
# if the upstream multicast packets are double tagged, it might require some different rules, if they are single tagged, this should just work | |
INTERNET_VLAN=3202 | |
IPTV_VLAN=2338 | |
INTERNET_CONVERT=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | |
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | |
@@ -1592,6 +1592,7 @@ struct bnx2x { | |
uint num_ethernet_queues; | |
uint num_cnic_queues; | |
int disable_tpa; | |
+ int mask_tx_fault; | |
u32 rx_mode; | |
#define BNX2X_RX_MODE_NONE 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mycss=prompt('请输入你需要的CSS'); | |
formhash=document.querySelector('input[name=formhash]').value; | |
fetch("/home.php?mod=spacecp&ac=index", {"credentials":"include","headers":{"content-type":"application/x-www-form-urlencoded"},"body":"spacecss=" | |
+ encodeURIComponent(mycss) + "&formhash=" + formhash + "&style=t8&layoutdata=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22ISO-8859-1%22%3F%3E%3Croot%3E%3Citem+id%3D%22diypage%22%3E%3Citem+id%3D%22frame%60frame1%22%3E%3Citem+id%3D%22attr%22%3E%3Citem+id%3D%22name%22%3E%3C%21%5BCDATA%5Bframe1%5D%5D%3E%3C%2Fitem%3E%3Citem+id%3D%22moveable%22%3E%3C%21%5BCDATA%5Bfalse%5D%5D%3E%3C%2Fitem%3E%3Citem+id%3D%22className%22%3E%3C%21%5BCDATA%5Bframe+cl%5D%5D%3E%3C%2Fitem%3E%3Citem+id%3D%22titles%22%3E%3C%2Fitem%3E%3C%2Fitem%3E%3Citem+id%3D%22column%60frame1_left%22%3E%3Citem+id%3D%22attr%22%3E%3Citem+id%3D%22name%22%3E%3C%21%5BCDATA%5Bframe1_left%5D%5D%3E%3C%2Fitem%3E%3Citem+id%3D%22className%22%3E%3C%21%5BCDATA%5Bz+column%5D%5D%3E%3C%2Fitem%3E%3C%2Fitem%3E%3Citem+id%3D%22block%60profil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Place in /etc/hotplug.d/iface/ | |
[ "$INTERFACE" = "wan6" ] || exit 0 | |
CRON_CMD='0 * * * * kill -SIGUSR1 $(pgrep odhcp6c)' | |
if [ "$ACTION" = "ifup" ]; then | |
grep -Fq "$CRON_CMD" /etc/crontabs/root || { | |
echo "$CRON_CMD" >> /etc/crontabs/root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- text -*- | |
# SOFTBANK BB Corp. CPE(E-WMTA2.x/XG-100NE) | |
# $Id$ | |
VENDOR sbb 22197 | |
BEGIN-VENDOR sbb | |
ATTRIBUTE CPE-MAC-Address 1 string | |
ATTRIBUTE CPE-Vendor-Name 2 string | |
ATTRIBUTE CPE-Product-Name 3 string |